#85: move all test files alongside with tested files

This commit is contained in:
SleepWalker
2017-05-25 22:52:00 +03:00
parent 078bc44490
commit 6ead1bd01f
36 changed files with 3 additions and 10 deletions

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