Skip to content

Commit e7f10a0

Browse files
authored
Update App.test.js
1 parent 7c6a6e9 commit e7f10a0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: src/App.test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from 'react';
22
import { render } from '@testing-library/react';
3+
import ReactDOM from 'react-dom';
34
import App from './App';
45

5-
test('renders learn react link', () => {
6-
const { getByText } = render(<App />);
7-
const linkElement = getByText(/learn react/i);
8-
expect(linkElement).toBeInTheDocument();
6+
it('renders without crashing', () => {
7+
const div = document.createElement('div');
8+
ReactDOM.render(<App />, div);
99
});

0 commit comments

Comments
 (0)