-
Notifications
You must be signed in to change notification settings - Fork 14
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
[NRPTI-1045] TESTS** Fix broken tests in API #1121
Conversation
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.
Great work on tidying up of a lot of this code! I've added some minor comments after looking over everything
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 comments on here, otherwise looking solid
@@ -152,7 +154,7 @@ describe('Map-Info Controller Testing', () => { | |||
|
|||
request(app) | |||
.delete(endpoint) | |||
.query(qs.stringify({ mapInfoId: testObjectId.toString() })) |
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 see this is removed in this test, but in other tests it is kept in. Is there a reason for the removal?
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.
@pinkyandthekane
.query()
already converts object entries into query strings like qs.stringify
is doing. It should be fine to remove them across the board, but was out of scope for this bit of work.
4b3c332
to
11111bb
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Pull Request Standards
HOTFIX
,FEATURE
,etc
][NRPTI-###]
Description
This PR includes the following proposed change(s):
npm audit fix
to immediately update non-breaking changes to the existing packages in/api
nodemon
to dev-dependencies so there's hot reloadingnpm run test-mac
to run API tests on apple silicone