-
Notifications
You must be signed in to change notification settings - Fork 0
added create user endpoint and unit tests for users #49
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
Conversation
Juwang110
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.
Overall looks good, just requires some refactoring, nice work!
Juwang110
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
…H/ssf-53-create-user-endpoint
sam-schu
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 53
📝 Description
Added a create users endpoint to /users in backend. This endpoint uses email, firstName, lastName, phone, role to create a user. I also had to modify the userService create function to not use the preset id and to have the phone field. I created unit tests for the user controller and user service to test the user routes.
✔️ Verification
I tested my route using Jest and created a sample user. I ran all of my tests and they passed.
🏕️ (Optional) Future Work / Notes
I had to slightly change the authController and sign_updto to include the phone field in order to pass the tests, since the create function in the userService was altered.