Fixed coding styles

This commit is contained in:
Alejandro Celaya 2018-08-26 20:17:40 +02:00
parent def5afc5ee
commit e5986ac6cf

View file

@ -17,10 +17,11 @@ describe('<App />', () => {
it('renders app main routes', () => { it('renders app main routes', () => {
const routes = wrapper.find(Route); const routes = wrapper.find(Route);
const expectedRoutesCount = 3; const expectedRoutesCount = 3;
const second = 2;
expect(routes).toHaveLength(expectedRoutesCount); expect(routes).toHaveLength(expectedRoutesCount);
expect(routes.at(0).prop('path')).toEqual('/server/create'); expect(routes.at(0).prop('path')).toEqual('/server/create');
expect(routes.at(1).prop('path')).toEqual('/'); expect(routes.at(1).prop('path')).toEqual('/');
expect(routes.at(2).prop('path')).toEqual('/server/:serverId'); expect(routes.at(second).prop('path')).toEqual('/server/:serverId');
}); });
}); });