mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-29 00:10:54 +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 ForgotPasswordState from 'services/authFlow/ForgotPasswordState';
|
||||||
import RecoverPasswordState from 'services/authFlow/RecoverPasswordState';
|
import RecoverPasswordState from 'services/authFlow/RecoverPasswordState';
|
||||||
import CompleteState from 'services/authFlow/CompleteState';
|
import CompleteState from 'services/authFlow/CompleteState';
|
||||||
@ -59,7 +61,7 @@ describe('ForgotPasswordState', () => {
|
|||||||
sinon.match({
|
sinon.match({
|
||||||
login: expectedLogin
|
login: expectedLogin
|
||||||
})
|
})
|
||||||
).returns({then() {}});
|
).returns(Promise.resolve());
|
||||||
|
|
||||||
state.resolve(context, {});
|
state.resolve(context, {});
|
||||||
});
|
});
|
||||||
@ -78,7 +80,7 @@ describe('ForgotPasswordState', () => {
|
|||||||
sinon.match({
|
sinon.match({
|
||||||
login: expectedLogin
|
login: expectedLogin
|
||||||
})
|
})
|
||||||
).returns({then() {}});
|
).returns(Promise.resolve());
|
||||||
|
|
||||||
state.resolve(context, {email: expectedLogin});
|
state.resolve(context, {email: expectedLogin});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user