mirror of
https://github.com/Unleash/unleash.git
synced 2024-10-23 20:07:40 +02:00
19443c651f
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".
17 lines
465 B
JavaScript
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');
|
|
});
|