Skip to content

Commit dccf278

Browse files
committed
Update ValidationAndPasswordsReset.spec.js
1 parent 4dfbc1c commit dccf278

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

spec/ValidationAndPasswordsReset.spec.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,6 +1083,20 @@ describe('Custom Pages, Email Verification, Password Reset', () => {
10831083
});
10841084
});
10851085

1086+
it('should resolve on an invalid reset password with default server parameters', async () => {
1087+
await reconfigureServer({
1088+
appName: 'coolapp',
1089+
publicServerURL: 'http://localhost:1337/1',
1090+
emailAdapter: MockEmailAdapterWithOptions({
1091+
fromAddress: '[email protected]',
1092+
apiKey: 'k',
1093+
domain: 'd',
1094+
}),
1095+
});
1096+
const result = await Parse.User.requestPasswordReset('[email protected]');
1097+
expect(result).toEqual({});
1098+
});
1099+
10861100
it('should throw on an invalid reset password with resetPasswordSuccessOnInvalidEmail', async () => {
10871101
await reconfigureServer({
10881102
appName: 'coolapp',

0 commit comments

Comments
 (0)