1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-23 20:07:40 +02:00
unleash.unleash/frontend/src/component/menu/__tests__/routes-test.jsx
Ivar Conradi Østhus 19443c651f Feat: clone feature toggle configuration (#201)
Create a new feature toggle by cloning the config of an
existing feature toggle.

This feature alos moves away from the input store for the
"create feature toggle form".
2020-01-09 22:51:05 +01:00

17 lines
465 B
JavaScript

import { routes, baseRoutes, getRoute } from '../routes';
test('returns all defined routes', () => {
expect(routes.length).toEqual(14);
expect(routes).toMatchSnapshot();
});
test('returns all baseRoutes', () => {
expect(baseRoutes.length).toEqual(6);
expect(baseRoutes).toMatchSnapshot();
});
test('getRoute() returns named route', () => {
const featuresRoute = getRoute('/features');
expect(featuresRoute.path).toEqual('/features');
});