Resend activation from register state

This commit is contained in:
SleepWalker
2016-05-23 06:50:10 +03:00
parent 09ca1aa85a
commit 05b82101bf
4 changed files with 54 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
import RegisterState from 'services/authFlow/RegisterState';
import CompleteState from 'services/authFlow/CompleteState';
import ResendActivationState from 'services/authFlow/ResendActivationState';
import { bootstrap, expectState, expectNavigate, expectRun } from './helpers';
@@ -78,4 +79,12 @@ describe('RegisterState', () => {
return promise.catch(mock.verify.bind(mock));
});
});
describe('#reject', () => {
it('should transition to resend-activation', () => {
expectState(mock, ResendActivationState);
state.reject(context);
});
});
});