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
2021-02-05 14:24:22 +01:00

17 lines
465 B
JavaScript

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