2019-04-05 02:23:40 +07:00
|
|
|
import React from 'react';
|
|
|
|
import { BrowserRouter as Router } from 'react-router-dom';
|
2019-10-12 18:23:14 +07:00
|
|
|
import { render } from '@testing-library/react';
|
2019-10-08 03:19:18 +07:00
|
|
|
|
2019-06-20 19:37:28 +07:00
|
|
|
import NotFound from './NotFound';
|
2019-04-05 02:23:40 +07:00
|
|
|
|
|
|
|
describe('<NotFound /> component', () => {
|
2019-06-20 19:37:28 +07:00
|
|
|
test('should load the component in default state', () => {
|
2019-10-12 18:23:14 +07:00
|
|
|
const { container } = render(
|
2019-04-05 02:23:40 +07:00
|
|
|
<Router>
|
|
|
|
<NotFound />
|
|
|
|
</Router>
|
|
|
|
);
|
2019-10-12 18:23:14 +07:00
|
|
|
expect(container.firstChild).toMatchSnapshot();
|
2019-04-05 02:23:40 +07:00
|
|
|
});
|
2019-10-12 18:23:14 +07:00
|
|
|
test.todo('Test Button Click');
|
2019-04-05 02:23:40 +07:00
|
|
|
});
|