Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete draft amendments #83

Merged
merged 7 commits into from Jul 11, 2019
Merged

delete draft amendments #83

merged 7 commits into from Jul 11, 2019

Conversation

wheelsandcogs
Copy link
Contributor

No description provided.

lib/resolvers/project.js Outdated Show resolved Hide resolved
@joefitter
Copy link
Contributor

I hate to be that guy but this PR is crying out for some unit tests 🏩

@@ -139,8 +139,9 @@ describe('PIL resolver', () => {
.then(pil => {
assert.deepEqual(pil, undefined);
})
.then(() => this.models.PIL.query())
.then(() => this.models.PIL.queryWithDeleted().findById(opts.id))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this just a fix for something else that's wildly out of scope?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this was returning an empty array before, which then passed the assertion even though there was no PIL.

@@ -165,8 +165,9 @@ describe('Place resolver', () => {
.then(place => {
assert.deepEqual(place, undefined);
})
.then(() => this.models.Place.query())
.then(() => this.models.Place.queryWithDeleted().findById(opts.id))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm gonna guess yes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same deal here.

@lennym lennym merged commit a69a7fd into master Jul 11, 2019
@wheelsandcogs wheelsandcogs deleted the feature/discard-amendments branch July 11, 2019 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants