mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 12:43:11 +10:00
LoginForm.test: remove routeConfiguration and RoutesProvider
This commit is contained in:
parent
e38e24a783
commit
a6c5437fd2
1 changed files with 1 additions and 9 deletions
|
|
@ -1,18 +1,10 @@
|
|||
import React from 'react';
|
||||
import { renderDeep } from '../../util/test-helpers';
|
||||
import { RoutesProvider } from '../../components';
|
||||
import routeConfiguration from '../../routeConfiguration';
|
||||
import { flattenRoutes } from '../../util/routes';
|
||||
import LoginForm from './LoginForm';
|
||||
|
||||
describe('LoginForm', () => {
|
||||
it('matches snapshot', () => {
|
||||
const flattenedRoutes = flattenRoutes(routeConfiguration());
|
||||
const tree = renderDeep(
|
||||
<RoutesProvider flattenedRoutes={flattenedRoutes}>
|
||||
<LoginForm />
|
||||
</RoutesProvider>
|
||||
);
|
||||
const tree = renderDeep(<LoginForm />);
|
||||
expect(tree).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue