Download react-boilerplate/app/containers/App/tests/index.test.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 379 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-boilerplate/app/containers/App/tests/index.test.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/react-boilerplate/app/containers/App/tests/index.test.js
-
curl -L -o index.test.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-boilerplate/app/containers/App/tests/index.test.js
379 Bytes
| import React from 'react'; | |
| import ShallowRenderer from 'react-test-renderer/shallow'; | |
| import App from '../index'; | |
| const renderer = new ShallowRenderer(); | |
| describe('<App />', () => { | |
| it('should render and match the snapshot', () => { | |
| renderer.render(<App />); | |
| const renderedOutput = renderer.getRenderOutput(); | |
| expect(renderedOutput).toMatchSnapshot(); | |
| }); | |
| }); | |