Skip to content

Commit 8717096

Browse files
authored
Update README.md - fix code examples to use the correct of the testing-library matcher - toHaveTextContent (#128)
2 parents 7b2c260 + ecb0a9e commit 8717096

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ describe('next-router-mock', () => {
6969

7070
// Render the component:
7171
render(<ExampleComponent href="/foo?bar=baz" />);
72-
expect(screen.getByRole('button')).toHaveText(
72+
expect(screen.getByRole('button')).toHaveTextContent(
7373
'The current route is: "/initial-path"'
7474
);
7575

0 commit comments

Comments
 (0)