Skip to content

Commit

Permalink
docs: Fix wrong toHaveValue example (#431)
Browse files Browse the repository at this point in the history
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.
cbroeren authored Feb 2, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent a9beb47 commit 43a420a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -890,7 +890,7 @@ const selectInput = getByTestId('select-number')
expect(textInput).toHaveValue('text')
expect(numberInput).toHaveValue(5)
expect(emptyInput).not.toHaveValue()
expect(selectInput).not.toHaveValue(['second', 'third'])
expect(selectInput).toHaveValue(['second', 'third'])
```

<hr />

0 comments on commit 43a420a

Please sign in to comment.