From dccf278222951498acb7a2b4972f196bb8a55a91 Mon Sep 17 00:00:00 2001 From: dblythy Date: Tue, 7 Sep 2021 10:51:13 +1000 Subject: [PATCH] Update ValidationAndPasswordsReset.spec.js --- spec/ValidationAndPasswordsReset.spec.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/spec/ValidationAndPasswordsReset.spec.js b/spec/ValidationAndPasswordsReset.spec.js index 05d5a7bcdac..f2daad49bab 100644 --- a/spec/ValidationAndPasswordsReset.spec.js +++ b/spec/ValidationAndPasswordsReset.spec.js @@ -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',