#245: cover prompt=consent with tests

This commit is contained in:
SleepWalker 2017-01-29 13:51:31 +02:00
parent 7178ac0b88
commit c1005b747b

View File

@ -134,6 +134,25 @@ describe('CompleteState', () => {
state.enter(context);
});
it('should transition to permissions state if prompt=consent', () => {
context.getState.returns({
user: {
isActive: true,
isGuest: false
},
auth: {
oauth: {
clientId: 'ely.by',
prompt: ['consent']
}
}
});
expectState(mock, PermissionsState);
state.enter(context);
});
});
describe('when user completes oauth', () => {