Skip to content

Commit

Permalink
Update incorrect comment
Browse files Browse the repository at this point in the history
  • Loading branch information
berickson1 committed May 12, 2020
1 parent fac004f commit 50afd28
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions types/testing-library__jest-dom/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,9 @@ declare namespace jest {
toHaveClass(...classNames: string[]): R;
/**
* @description
* Check whether the given form element has the specified value.
*
* Accepts `<input>`, `<select>`, and `<textarea>` elements with the exception of `<input type="checkbox">` and
* `<input type="radiobox">`, which can be matched only using
* [toBeChecked](https:github.com/testing-library/jest-dom#tobechecked) or
* [toHaveFormValues](https:github.com/testing-library/jest-dom#tohaveformvalues).
* This allows you to check whether the given form element has the specified displayed value (the one the
* end user will see). It accepts <input>, <select> and <textarea> elements with the exception of <input type="checkbox">
* and <input type="radio">, which can be meaningfully matched only using toBeChecked or toHaveFormValues.
* @example
* <label for="input-example">First name</label>
* <input type="text" id="input-example" value="Luca" />
Expand Down Expand Up @@ -298,9 +295,7 @@ declare namespace jest {
toHaveDisplayValue(value: string | string[]): R;
/**
* @description
* This allows you to check whether the given form element has the specified displayed value (the one the
* end user will see). It accepts <input>, <select> and <textarea> elements with the exception of <input type="checkbox">
* and <input type="radio">, which can be meaningfully matched only using toBeChecked or toHaveFormValues.
* Assert whether an element has focus or not.
* @example
* <div>
* <input type="text" data-testid="element-to-focus" />
Expand Down

0 comments on commit 50afd28

Please sign in to comment.