2022-01-16 15:11:27 +04:00
|
|
|
import React from 'react'
|
|
|
|
import { render, screen } from '@testing-library/react'
|
|
|
|
import App from './App'
|
2022-01-08 13:21:04 -05:00
|
|
|
|
|
|
|
test('renders learn react link', () => {
|
2022-01-16 15:11:27 +04:00
|
|
|
render(<App />)
|
|
|
|
const linkElement = screen.getByText(/learn react/i)
|
|
|
|
expect(linkElement).toBeInTheDocument()
|
|
|
|
})
|