Update App.test.js

This commit is contained in:
Anthony Dumas 2023-03-27 23:26:27 +02:00 committed by GitHub
parent c41d1835aa
commit 86c0df290d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,8 @@
import { render, screen } from '@testing-library/react';
import App from './App';
test('renders learn react link', () => {
test('renders Anthony Yvon Dumas', () => {
render(<App />);
const linkElement = screen.getByText(/learn react/i);
const linkElement = screen.getByText(/Anthony Yvon Dumas/i);
expect(linkElement).toBeInTheDocument();
});