Skip to content

Commit ba38405

Browse files
committed
event name change
1 parent 7f20442 commit ba38405

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/__tests__/events.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,17 +198,17 @@ test('onChange works', () => {
198198
})
199199

200200
test('calling `onPointerEnter` directly works too', () => {
201-
const handleBlur = jest.fn()
201+
const handlePointerEnter = jest.fn()
202202
const {container} = render(
203203
<div>
204-
<button onPointerEnter={handleBlur} />
204+
<button onPointerEnter={handlePointerEnter} />
205205
</div>,
206206
)
207207
const button = container.firstChild.firstChild
208208

209209
fireEvent.pointerEnter(button)
210210

211-
expect(handleBlur).toHaveBeenCalledTimes(1)
211+
expect(handlePointerEnter).toHaveBeenCalledTimes(1)
212212
})
213213

214214
test('calling `fireEvent` directly works too', () => {

0 commit comments

Comments
 (0)