mirror of
https://github.com/SomboChea/ui
synced 2024-05-03 01:51:37 +07:00
fdbdb6303b
* refactor: updated not found component * chore: removed react-router * refactored: applied feedbacks * fix: removed doc folder * refactor: rollback yarn.lock
18 lines
466 B
TypeScript
18 lines
466 B
TypeScript
import React from 'react';
|
|
import { BrowserRouter as Router } from 'react-router-dom';
|
|
import { render } from '@testing-library/react';
|
|
|
|
import NotFound from './NotFound';
|
|
|
|
describe('<NotFound /> component', () => {
|
|
test('should load the component in default state', () => {
|
|
const { container } = render(
|
|
<Router>
|
|
<NotFound />
|
|
</Router>
|
|
);
|
|
expect(container.firstChild).toMatchSnapshot();
|
|
});
|
|
test.todo('Test Button Click');
|
|
});
|