Skip to content

Commit 798bc6e

Browse files
huyenltnguyeneps1lon
authored andcommitted
docs(api-events): Fix some typos (#325)
1 parent 85f3983 commit 798bc6e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/dom-testing-library/api-events.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ element in the DOM and the key you want to fire.
6767
fireEvent.keyDown(domNode, { key: 'Enter', code: 13 })
6868

6969
// note: you should set the charCode or it will be fallback to 0
70-
// will Fire an KeyboardEvent with charCode = 0
70+
// will fire a KeyboardEvent with charCode = 13
7171
fireEvent.keyDown(domNode, { key: 'Enter', code: 13 })
7272

7373
// If using event.which, be sure to set the keyCode or it will be fallback to 0
74-
// will Fire a KeyboardEvent with expected which = 13
74+
// will fire a KeyboardEvent with expected which = 13
7575
fireEvent.keyDown(domNode, { key: 'Enter', keyCode: 13 })
7676

77-
// will Fire an KeyboardEvent with charCode = 65
77+
// will fire a KeyboardEvent with charCode = 65
7878
fireEvent.keyDown(domNode, { key: 'A', code: 65, charCode: 65 })
7979
```
8080

0 commit comments

Comments
 (0)