-
Notifications
You must be signed in to change notification settings - Fork 0
[SSF-137] Orders Service and Controller Tests #102
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
base: main
Are you sure you want to change the base?
Conversation
| expect(result.orderId).toBe(1); | ||
| }); | ||
|
|
||
| it('throws BadRequestException for non positive ID', async () => { |
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.
Tests like these are something I think we should determine if we want to do now, before we start doing the rest of our testing. @sam-schu this test is honestly just making sure the validate call works. Is it really worth testing this helper function that is called in almost all of our service functions, or can we test it separately and not have to do this every single time for every single test? I'm more in favor of the second option.
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 we actually already test them in validation.utils.spec.ts so imma delete
8629389 to
1a806ca
Compare
dburkhart07
left a comment
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.
Some initial comments!
…to foodManufacturerId, fix tests
dburkhart07
left a comment
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.
Few more small things.
dburkhart07
left a comment
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.
LGTM!!!! 🐼 🥞 🍳 🥖
ℹ️ Issue
Closes SSF-137
📝 Description
findOrderPantrybecause FK constraint guarantees valid pantry reference.✔️ Verification
Ran yarn test with all tests passing.
🏕️ (Optional) Future Work / Notes
Did you notice anything ugly during the course of this ticket? Any bugs, design challenges, or unexpected behavior? Write it down so we can clean it up in a future ticket!