Skip to content

Commit 7a72d35

Browse files
matthis-dKent C. Dodds
authored andcommitted
Typo in react-testing-library API (testing-library#17)
While I was reading the API documentation about react-testing-library, I noticed this small typo that can lead to errors when copy-pasted. Thanks for this lib and doc πŸ˜‰
1 parent 6d0526c commit 7a72d35

File tree

1 file changed

+1
-1
lines changed
  • docs/react-testing-library

1 file changed

+1
-1
lines changed

β€Ždocs/react-testing-library/api.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ afterEach(cleanup)
3232
3333
test('renders a message', () => {
3434
const { container, getByText } = render(<Greeting />)
35-
expect(getbyText('Hello, world!')).toBeInTheDocument()
35+
expect(getByText('Hello, world!')).toBeInTheDocument()
3636
expect(container.firstChild).toMatchInlineSnapshot(`
3737
<h1>Hello, World!</h1>
3838
`)

0 commit comments

Comments
Β (0)