Download react-boilerplate/app/containers/NotFoundPage/tests/index.test.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 515 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-boilerplate/app/containers/NotFoundPage/tests/index.test.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/react-boilerplate/app/containers/NotFoundPage/tests/index.test.js
-
curl -L -o index.test.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-boilerplate/app/containers/NotFoundPage/tests/index.test.js
515 Bytes
| /** | |
| * Testing the NotFoundPage | |
| */ | |
| import React from 'react'; | |
| import { render } from 'react-testing-library'; | |
| import { IntlProvider } from 'react-intl'; | |
| import NotFound from '../index'; | |
| import messages from '../messages'; | |
| describe('<NotFound />', () => { | |
| it('should render the Page Not Found text', () => { | |
| const { queryByText } = render( | |
| <IntlProvider locale="en"> | |
| <NotFound /> | |
| </IntlProvider>, | |
| ); | |
| expect(queryByText(messages.header.defaultMessage)).not.toBeNull(); | |
| }); | |
| }); | |