Update README due to deprecation of react-testing-library's toBeInTheDOM (#5334)

This commit is contained in:
Ragnar Rebase
2018-10-07 01:20:27 +03:00
committed by Joe Haddad
parent 81830dc9a2
commit 12f794cfdb

View File

@@ -1496,7 +1496,7 @@ import App from './App';
it('renders welcome message', () => {
const { getByText } = render(<App />);
expect(getByText('Welcome to React')).toBeInTheDOM();
expect(getByText('Welcome to React')).toBeInTheDocument();
});
```