mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-27 23:40:28 +05:30
Fix tests
This commit is contained in:
parent
9881199d47
commit
c8b278fd72
@ -1,3 +1,5 @@
|
||||
import sinon from 'sinon';
|
||||
|
||||
import ForgotPasswordState from 'services/authFlow/ForgotPasswordState';
|
||||
import RecoverPasswordState from 'services/authFlow/RecoverPasswordState';
|
||||
import CompleteState from 'services/authFlow/CompleteState';
|
||||
@ -59,7 +61,7 @@ describe('ForgotPasswordState', () => {
|
||||
sinon.match({
|
||||
login: expectedLogin
|
||||
})
|
||||
).returns({then() {}});
|
||||
).returns(Promise.resolve());
|
||||
|
||||
state.resolve(context, {});
|
||||
});
|
||||
@ -78,7 +80,7 @@ describe('ForgotPasswordState', () => {
|
||||
sinon.match({
|
||||
login: expectedLogin
|
||||
})
|
||||
).returns({then() {}});
|
||||
).returns(Promise.resolve());
|
||||
|
||||
state.resolve(context, {email: expectedLogin});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user