From 1c56f2af38f4333850bb27a292ba9e676c1892f5 Mon Sep 17 00:00:00 2001 From: Julien Date: Thu, 13 Oct 2022 20:59:00 +0200 Subject: [PATCH] fix: update useEventListener tests --- src/useEventListener/useEventListener.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/useEventListener/useEventListener.test.ts b/src/useEventListener/useEventListener.test.ts index b93c3dc1..810aedd1 100644 --- a/src/useEventListener/useEventListener.test.ts +++ b/src/useEventListener/useEventListener.test.ts @@ -54,6 +54,7 @@ describe('useEventListener()', () => { expect(windowRemoveEventListenerSpy).toHaveBeenCalledWith( eventName, expect.any(Function), + options, ) }) @@ -78,6 +79,7 @@ describe('useEventListener()', () => { expect(refRemoveEventListenerSpy).toHaveBeenCalledWith( eventName, expect.any(Function), + options, ) }) @@ -102,6 +104,7 @@ describe('useEventListener()', () => { expect(docRemoveEventListenerSpy).toHaveBeenCalledWith( eventName, expect.any(Function), + options, ) })