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