diff options
Diffstat (limited to 'src/App.test.js')
| -rw-r--r-- | src/App.test.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/App.test.js b/src/App.test.js new file mode 100644 index 0000000..4db7ebc --- /dev/null +++ b/src/App.test.js | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | import React from 'react'; | ||
| 2 | import { render } from '@testing-library/react'; | ||
| 3 | import App from './App'; | ||
| 4 | |||
| 5 | test('renders learn react link', () => { | ||
| 6 | const { getByText } = render(<App />); | ||
| 7 | const linkElement = getByText(/learn react/i); | ||
| 8 | expect(linkElement).toBeInTheDocument(); | ||
| 9 | }); | ||
