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