1
0
Fork 1
mirror of https://github.com/SomboChea/ui synced 2024-06-29 06:25:33 +07:00
verdaccio-ui/test/unit/components/notfound.spec.js
Juan Picado @jotadeveloper 9d7be476ad chore: relocate unit test (#39)
add new json snapshot serializer
2019-05-01 21:02:46 +02:00

28 lines
563 B
JavaScript

/**
* NotFound component
*/
import React from 'react';
import { BrowserRouter as Router } from 'react-router-dom';
import { shallow } from 'enzyme';
import NotFound from '../../../src/webui/components/NotFound/index';
console.error = jest.fn();
describe('<NotFound /> component', () => {
let routerWrapper;
beforeEach(() => {
routerWrapper = shallow(
<Router>
<NotFound />
</Router>
);
});
test('should load the component in default state', () => {
expect(routerWrapper.find(NotFound)).toMatchSnapshot();
});
});