Skip to content

Commit

Permalink
docs: Remove lines about using fireEvent to gain focus or blur (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jānis Zaržeckis authored and gnapse committed Jan 20, 2020
1 parent 760409a commit c919520
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions README.md
Expand Up @@ -732,18 +732,6 @@ input.blur()
expect(input).not.toHaveFocus()
```
##### Using DOM Testing Library
```javascript
const input = queryByTestId(container, 'element-to-focus')

fireEvent.focus(input)
expect(input).toHaveFocus()

fireEvent.blur(input)
expect(input).not.toHaveFocus()
```
<hr />
### `toHaveFormValues`
Expand Down

0 comments on commit c919520

Please sign in to comment.