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.
  • Loading branch information
cbroeren committed Feb 2, 2022
1 parent a9beb47 commit 43a420a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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 />
Expand Down

0 comments on commit 43a420a

Please sign in to comment.