This repository was archived by the owner on Jul 17, 2020. It is now read-only.
Adding unit test user controllers#417
Open
monkeycodez wants to merge 1 commit intofreeCodeCamp:stagingfrom
Open
Adding unit test user controllers#417monkeycodez wants to merge 1 commit intofreeCodeCamp:stagingfrom
monkeycodez wants to merge 1 commit intofreeCodeCamp:stagingfrom
Conversation
Created first test for forgot-password On email not registered, success is returned, but nothing sent On correct email provided, email is sent Added test for forgot-password: token check The reset token sent in email should match the token in the updated user profile. added admin cannot demote themselves test update request cannot have blank first and last name test:user trying to change email to an existing email test: will not allow admin to update user if they do not have a name or if the email they are trying to update to is taken Fixed admin cannot demote himself test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Test created for server/controllers/users/passwords.js
forgot password
Test create for server/controllers/users/profiles.js
Adds coverage for exceptions and if statement so admins cannot demote themselves