Skip to content

Commit

Permalink
Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
moransantiago committed Oct 1, 2024
1 parent 35a2c44 commit 7f7f6a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/test/use-kinetic-scroll.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ describe("useKineticScroll", () => {

rerender({ isEnabled: true });

expect(targetScroller.current.addEventListener).toHaveBeenCalledTimes(2);
expect(targetScroller.current.addEventListener).toHaveBeenCalledTimes(4);
expect(targetScroller.current.removeEventListener).not.toHaveBeenCalled();

rerender({ isEnabled: false });

expect(targetScroller.current.removeEventListener).toHaveBeenCalledTimes(2);
expect(targetScroller.current.removeEventListener).toHaveBeenCalledTimes(4);
});

it("handles scroll events and triggers callback", () => {
Expand Down

0 comments on commit 7f7f6a0

Please sign in to comment.