-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Create a test to check the issue #4501 #4532
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
Adds: - Check if after the user confirms the email and change the email again a new verification email is sent
Oh...well ignore what I was saying before. Didn't realize this was already up, totally missed that 🤣 . I'll suggest some changes here. |
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.
Alright, all I can think of is the clarification for test wording. Minus that, I like the test.
spec/EmailVerificationToken.spec.js
Outdated
@@ -777,4 +777,63 @@ describe("Email Verification Token Expiration: ", () => { | |||
}); | |||
}); | |||
|
|||
it('When a user has verified their email, and then change it, the field emailVerified should be false and the new link will be send to the user', done => { |
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.
A suggestion to reword this to be a bit shorter
emailVerified should be set to false after changing from an already verified email
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.
Man, do you speak a lot hahaha.
Codecov Report
@@ Coverage Diff @@
## master #4532 +/- ##
==========================================
- Coverage 92.89% 92.81% -0.09%
==========================================
Files 118 118
Lines 8445 8445
==========================================
- Hits 7845 7838 -7
- Misses 600 607 +7
Continue to review full report at Codecov.
|
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.
fantastic! Although this behavior is already exhibited, now we'll be able to properly account for it in any further changes or releases from this point on.
…existing (parse-community#4532) * Create a test to check the issue parse-community#4501 * Check if after the user confirms the email and change the email again a new verification email is sent * Change the spec text to requested in PR
Adds: