Skip to content

Conversation

@multi-vit
Copy link

Added a unit test in /server/test/controller/User.test.js for getUser with an ID.
This identified a bug on line 22 of /server/src/controller/user.controller.js where the conditional check was for !user, when it should have been !users.
Fixed this and test is now passing.
If you're happy with this PR, I'll happily try and add more tests for the other controllers/services. Just wanted to try one first to make sure it was ok!

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.

1 participant