-
-
Notifications
You must be signed in to change notification settings - Fork 594
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
test: Add missing test for Parse.User.verifyPassword
option ignoreEmailVerification
#2103
Conversation
Thanks for opening this pull request! |
ignoreEmailVerification
option on Parse.User.verifyPassword
Parse.User.verifyPassword
option ignoreEmailVerification
…eEmailVerification
…s/Parse-SDK-JS into ignore-email-verification
@mtrezza Looks like CodeCov is broken
|
Parse.User.verifyPassword
option ignoreEmailVerificationParse.User.verifyPassword
option ignoreEmailVerification
I assumed an integration test would cover the REST controller as well... why do we need to add a test for the REST controller? |
It was missing coverage https://app.codecov.io/gh/parse-community/Parse-SDK-JS/commit/b0adf7e02ab0beea2cd9b759d0f788c69d291491/blob/src/RESTController.js#L254 Also any particular reason why you added this options to the payload? |
Fixed in #2105 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## alpha #2103 +/- ##
===========================================
+ Coverage 99.98% 100.00% +0.01%
===========================================
Files 61 61
Lines 6185 6185
Branches 1499 1499
===========================================
+ Hits 6184 6185 +1
+ Misses 1 0 -1 ☔ View full report in Codecov by Sentry. |
@mtrezza Nice! Back to 100.00% coverage |
Where do you suggest to put it? |
Parse.User.verifyPassword
option ignoreEmailVerificationParse.User.verifyPassword
option ignoreEmailVerification
Parse.User.verifyPassword
option ignoreEmailVerificationParse.User.verifyPassword
option ignoreEmailVerification
Just the placement seemed off. It should have been added to the data send which would have automatically added to the payload. In this case the test wouldn't have been needed. https://github.com/parse-community/Parse-SDK-JS/blob/alpha/src/RESTController.js#L215-L220 |
I believe I've added it to the Lines 1263 to 1266 in c591895
You think it should be changed? |
I think it should change as you are still extracting it to the data payload in the RESTController. Would this work with directAccess on the server as the RESTController would change? Also there isn't any documentation for this field. |
Alright then I'll change this in another PR and add the docs. |
Pull Request
Issue
#2076 introduced a new feature for verifiying user passwords with a
ignoreEmailVerification
option. A unit test is missing.Closes: #2101
Approach
Add test
Tasks