Skip to content

Commit

Permalink
Update ValidationAndPasswordsReset.spec.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dblythy committed May 19, 2022
1 parent 4dfbc1c commit dccf278
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions spec/ValidationAndPasswordsReset.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1083,6 +1083,20 @@ describe('Custom Pages, Email Verification, Password Reset', () => {
});
});

it('should resolve on an invalid reset password with default server parameters', async () => {
await reconfigureServer({
appName: 'coolapp',
publicServerURL: 'http://localhost:1337/1',
emailAdapter: MockEmailAdapterWithOptions({
fromAddress: 'parse@example.com',
apiKey: 'k',
domain: 'd',
}),
});
const result = await Parse.User.requestPasswordReset('test@example.com');
expect(result).toEqual({});
});

it('should throw on an invalid reset password with resetPasswordSuccessOnInvalidEmail', async () => {
await reconfigureServer({
appName: 'coolapp',
Expand Down

0 comments on commit dccf278

Please sign in to comment.