Fix tests

This commit is contained in:
SleepWalker 2017-04-15 09:35:26 +03:00
parent 9881199d47
commit c8b278fd72

View File

@ -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});
});