Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
event name change
  • Loading branch information
karthick3018 committed Sep 13, 2020
commit ba38405c41e4a8aa40e500f2d20fb0039fd60fde
6 changes: 3 additions & 3 deletions src/__tests__/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,17 +198,17 @@ test('onChange works', () => {
})

test('calling `onPointerEnter` directly works too', () => {
const handleBlur = jest.fn()
const handlePointerEnter = jest.fn()
const {container} = render(
<div>
<button onPointerEnter={handleBlur} />
<button onPointerEnter={handlePointerEnter} />
</div>,
)
const button = container.firstChild.firstChild

fireEvent.pointerEnter(button)

expect(handleBlur).toHaveBeenCalledTimes(1)
expect(handlePointerEnter).toHaveBeenCalledTimes(1)
})

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