mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-06 16:21:23 +05:30
30 lines
549 B
TypeScript
30 lines
549 B
TypeScript
import FinishState from 'app/services/authFlow/FinishState';
|
|
|
|
import { bootstrap, expectNavigate } from './helpers';
|
|
|
|
describe('FinishState', () => {
|
|
let state;
|
|
let context;
|
|
let mock;
|
|
|
|
beforeEach(() => {
|
|
state = new FinishState();
|
|
|
|
const data = bootstrap();
|
|
context = data.context;
|
|
mock = data.mock;
|
|
});
|
|
|
|
afterEach(() => {
|
|
mock.verify();
|
|
});
|
|
|
|
describe('#enter', () => {
|
|
it('should navigate to /oauth/finish', () => {
|
|
expectNavigate(mock, '/oauth/finish');
|
|
|
|
state.enter(context);
|
|
});
|
|
});
|
|
});
|