Skip to content

Commit c919520

Browse files
Jānis Zaržeckisgnapse
authored andcommitted
docs: Remove lines about using fireEvent to gain focus or blur (#187)
1 parent 760409a commit c919520

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

README.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -732,18 +732,6 @@ input.blur()
732732
expect(input).not.toHaveFocus()
733733
```
734734
735-
##### Using DOM Testing Library
736-
737-
```javascript
738-
const input = queryByTestId(container, 'element-to-focus')
739-
740-
fireEvent.focus(input)
741-
expect(input).toHaveFocus()
742-
743-
fireEvent.blur(input)
744-
expect(input).not.toHaveFocus()
745-
```
746-
747735
<hr />
748736
749737
### `toHaveFormValues`

0 commit comments

Comments
 (0)