mirror of
https://github.com/SomboChea/ui
synced 2024-06-26 21:15:32 +07:00
* refactor: added eslint-plugin-import * refactor: disable some rules for muiComponents * fix: fixed import
19 lines
454 B
TypeScript
19 lines
454 B
TypeScript
import React from 'react';
|
|
import { BrowserRouter as Router } from 'react-router-dom';
|
|
import { shallow } from 'enzyme';
|
|
|
|
import NotFound from './NotFound';
|
|
|
|
console.error = jest.fn();
|
|
|
|
describe('<NotFound /> component', () => {
|
|
test('should load the component in default state', () => {
|
|
const routerWrapper = shallow(
|
|
<Router>
|
|
<NotFound />
|
|
</Router>
|
|
);
|
|
expect(routerWrapper.find(NotFound)).toMatchSnapshot();
|
|
});
|
|
});
|