1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-13 03:35:52 +01:00
verdaccio/test/unit/webui/components/notfound.spec.js
Juan Picado @jotadeveloper 752b870aba feat: not found page (#1208)
* refator: added 404 page

* fix: fixed lint errors

* fix: fixed test

* refactor: add async import
2019-01-31 21:58:59 +01:00

28 lines
566 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();
});
});