2017-11-29 08:16:38 -05:00
|
|
|
/**
|
|
|
|
* NotFound component
|
|
|
|
*/
|
|
|
|
|
|
|
|
import React from 'react';
|
2019-01-31 15:58:59 -05:00
|
|
|
import { BrowserRouter as Router } from 'react-router-dom';
|
|
|
|
import { shallow } from 'enzyme';
|
2018-07-17 14:22:44 -05:00
|
|
|
import NotFound from '../../../../src/webui/components/NotFound/index';
|
2017-11-29 08:16:38 -05:00
|
|
|
|
|
|
|
console.error = jest.fn();
|
|
|
|
|
2017-12-02 07:34:42 -05:00
|
|
|
describe('<NotFound /> component', () => {
|
2019-01-31 15:58:59 -05:00
|
|
|
let routerWrapper;
|
|
|
|
beforeEach(() => {
|
|
|
|
routerWrapper = shallow(
|
|
|
|
<Router>
|
|
|
|
<NotFound />
|
|
|
|
</Router>
|
|
|
|
);
|
2017-11-29 08:16:38 -05:00
|
|
|
});
|
|
|
|
|
2019-01-31 15:58:59 -05:00
|
|
|
|
|
|
|
test('should load the component in default state', () => {
|
|
|
|
expect(routerWrapper.find(NotFound)).toMatchSnapshot();
|
2017-11-29 08:16:38 -05:00
|
|
|
});
|
2019-01-31 15:58:59 -05:00
|
|
|
|
2017-11-29 08:16:38 -05:00
|
|
|
});
|