Skip to content

Commit 1ff8a76

Browse files
authored
Fix wrong toHaveValue example
Small fix on README.md The `.toHaveValue` example for the select verifies for `.not.toHaveValue`, but the code example has these two options selected. That means it _should_ have this value, so I removed the `.not` part to have the test example match the code example.
1 parent a9beb47 commit 1ff8a76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ const selectInput = getByTestId('select-number')
890890
expect(textInput).toHaveValue('text')
891891
expect(numberInput).toHaveValue(5)
892892
expect(emptyInput).not.toHaveValue()
893-
expect(selectInput).not.toHaveValue(['second', 'third'])
893+
expect(selectInput).toHaveValue(['second', 'third'])
894894
```
895895

896896
<hr />

0 commit comments

Comments
 (0)