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
Conversation
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)) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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)) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same deal here.
No description provided.