Skip to content

Commit 4ddc4d9

Browse files
committed
docs: use screen on DOM testing library examples
1 parent de0bbf2 commit 4ddc4d9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -719,10 +719,10 @@ For all other form elements, the value is matched using the same algorithm as in
719719
##### Using DOM Testing Library
720720

721721
```javascript
722-
const textInput = getByTestId('input-text')
723-
const numberInput = getByTestId('input-number')
724-
const emptyInput = getByTestId('input-empty')
725-
const selectInput = getByTestId('select-number')
722+
const textInput = screen.getByTestId('input-text')
723+
const numberInput = screen.getByTestId('input-number')
724+
const emptyInput = screen.getByTestId('input-empty')
725+
const selectInput = screen.getByTestId('select-number')
726726

727727
expect(textInput).toHaveValue('text')
728728
expect(numberInput).toHaveValue(5)

0 commit comments

Comments
 (0)