Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

Commit ecb26c1

Browse files
MichaelDeBoeyandyecrow
authored andcommitted
Update template tests (facebook#8705)
1 parent 258f675 commit ecb26c1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from 'react';
2-
import { render } from '@testing-library/react';
2+
import { render, screen } from '@testing-library/react';
33
import App from './App';
44

55
test('renders learn react link', () => {
6-
const { getByText } = render(<App />);
7-
const linkElement = getByText(/learn react/i);
6+
render(<App />);
7+
const linkElement = screen.getByText(/learn react/i);
88
expect(linkElement).toBeInTheDocument();
99
});
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from 'react';
2-
import { render } from '@testing-library/react';
2+
import { render, screen } from '@testing-library/react';
33
import App from './App';
44

55
test('renders learn react link', () => {
6-
const { getByText } = render(<App />);
7-
const linkElement = getByText(/learn react/i);
6+
render(<App />);
7+
const linkElement = screen.getByText(/learn react/i);
88
expect(linkElement).toBeInTheDocument();
99
});

0 commit comments

Comments
 (0)