Skip to content

Commit

Permalink
chore: 🔧 🔄 update test case for useOnClickOutside.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
singhAmandeep007 committed Jul 1, 2024
1 parent 76faefc commit 6834a5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useOnClickOutside.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ describe("useOnClickOutside", () => {

renderHook(() => useOutsideClick({ ref, handler }));

expect(addEventListenerSpy).toHaveBeenCalledTimes(2);
expect(addEventListenerSpy).toHaveBeenCalled();
expect(addEventListenerSpy).toHaveBeenCalledWith("mousedown", expect.any(Function));

addEventListenerSpy.mockRestore();
Expand Down

0 comments on commit 6834a5c

Please sign in to comment.