mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
#85: move all test files alongside with tested files
This commit is contained in:
29
src/services/authFlow/FinishState.test.js
Normal file
29
src/services/authFlow/FinishState.test.js
Normal file
@@ -0,0 +1,29 @@
|
||||
import FinishState from '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);
|
||||
});
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user