Download AmazonPrime-ReactJS-Clone/src/App.test.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 280 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/AmazonPrime-ReactJS-Clone/src/App.test.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/AmazonPrime-ReactJS-Clone/src/App.test.js
-
curl -L -o App.test.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/AmazonPrime-ReactJS-Clone/src/App.test.js
280 Bytes
| import React from 'react'; | |
| import { render } from '@testing-library/react'; | |
| import App from './App'; | |
| test('renders learn react link', () => { | |
| const { getByText } = render(<App />); | |
| const linkElement = getByText(/learn react/i); | |
| expect(linkElement).toBeInTheDocument(); | |
| }); | |