feat: new not found component (#170)

* refactor: updated not found component

* chore: removed react-router

* refactored: applied feedbacks

* fix: removed doc folder

* refactor: rollback yarn.lock
This commit is contained in:
Priscila Oliveira
2019-10-12 13:23:14 +02:00
committed by Juan Picado @jotadeveloper
parent 7529c02e58
commit fdbdb6303b
10 changed files with 72 additions and 86 deletions

View File

@@ -1,18 +1,17 @@
import React from 'react';
import { BrowserRouter as Router } from 'react-router-dom';
import { shallow } from 'enzyme';
import { render } from '@testing-library/react';
import NotFound from './NotFound';
console.error = jest.fn();
describe('<NotFound /> component', () => {
test('should load the component in default state', () => {
const routerWrapper = shallow(
const { container } = render(
<Router>
<NotFound />
</Router>
);
expect(routerWrapper.find(NotFound)).toMatchSnapshot();
expect(container.firstChild).toMatchSnapshot();
});
test.todo('Test Button Click');
});