Skip to content

Commit 653801d

Browse files
Update api-events.mdx (#1096)
1 parent 9617535 commit 653801d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,8 @@ fireEvent(
135135
## Using Jest Function Mocks
136136

137137
[Jest's Mock functions](https://jestjs.io/docs/en/mock-functions) can be used to
138-
test that a callback passed to the function was called, or what it was called
139-
when the event that **should** trigger the callback function does trigger the
140-
bound callback.
138+
test that a component will call its bound callback in response to a particular
139+
event.
141140

142141
<Tabs
143142
defaultValue="react"

0 commit comments

Comments
 (0)