Skip to content

Commit e4143e2

Browse files
Matej MazurKent C. Dodds
Matej Mazur
authored and
Kent C. Dodds
committed
docs: fix variable name (#124)
1 parent 876f87d commit e4143e2

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
@@ -630,7 +630,7 @@ array has a length of 0.
630630
```javascript
631631
import {render} from 'react-testing-library'
632632
633-
const {queryByText} = render(<Forms />)
633+
const {queryAllByText} = render(<Forms />)
634634
const submitButtons = queryAllByText('submit')
635635
expect(submitButtons).toHaveLength(3) // expect 3 elements
636636
expect(submitButtons[0]).toBeInTheDOM()

0 commit comments

Comments
 (0)