From 1ff8a768b48c38bdc49d91325e55845d7b9cd17e Mon Sep 17 00:00:00 2001 From: Chantal Broeren Date: Mon, 31 Jan 2022 19:30:05 +0100 Subject: [PATCH] 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. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3665b348..8bd3ce42 100644 --- a/README.md +++ b/README.md @@ -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']) ```