mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-06 00:07:44 +01:00
12 lines
331 B
JavaScript
12 lines
331 B
JavaScript
import { baseRoutes, getRoute } from '../routes';
|
|
|
|
test('returns all baseRoutes', () => {
|
|
expect(baseRoutes).toHaveLength(40);
|
|
expect(baseRoutes).toMatchSnapshot();
|
|
});
|
|
|
|
test('getRoute() returns named route', () => {
|
|
const featuresRoute = getRoute('/features');
|
|
expect(featuresRoute.path).toEqual('/features');
|
|
});
|