1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-11 00:08:30 +01:00
unleash.unleash/frontend/src/component/menu/__tests__/routes-test.jsx

12 lines
331 B
React
Raw Normal View History

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