mirror of
https://github.com/SomboChea/ui
synced 2026-01-17 08:35:47 +07:00
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:
committed by
Juan Picado @jotadeveloper
parent
7529c02e58
commit
fdbdb6303b
@@ -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');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user