react-code-dataset / react-boilerplate /internals /templates /containers /NotFoundPage /tests /index.test.js
Download react-boilerplate/internals/templates/containers/NotFoundPage/tests/index.test.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 448 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-boilerplate/internals/templates/containers/NotFoundPage/tests/index.test.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/react-boilerplate/internals/templates/containers/NotFoundPage/tests/index.test.js
-
curl -L -o index.test.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-boilerplate/internals/templates/containers/NotFoundPage/tests/index.test.js
448 Bytes
| import React from 'react'; | |
| import { render } from 'react-testing-library'; | |
| import { IntlProvider } from 'react-intl'; | |
| import NotFoundPage from '../index'; | |
| describe('<NotFoundPage />', () => { | |
| it('should render and match the snapshot', () => { | |
| const { | |
| container: { firstChild }, | |
| } = render( | |
| <IntlProvider locale="en"> | |
| <NotFoundPage /> | |
| </IntlProvider>, | |
| ); | |
| expect(firstChild).toMatchSnapshot(); | |
| }); | |
| }); | |