From 882e4b2fda51f045b192f1f89eea0be1f4c33cfb Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 6 Jul 2022 12:10:21 -0500 Subject: [PATCH] Fix hooks tests types --- app/soapbox/hooks/__tests__/useDimensions.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/soapbox/hooks/__tests__/useDimensions.test.ts b/app/soapbox/hooks/__tests__/useDimensions.test.ts index c437f1394..0adee42e4 100644 --- a/app/soapbox/hooks/__tests__/useDimensions.test.ts +++ b/app/soapbox/hooks/__tests__/useDimensions.test.ts @@ -6,7 +6,7 @@ let listener: ((rect: any) => void) | undefined = undefined; (window as any).ResizeObserver = class ResizeObserver { - constructor(ls) { + constructor(ls: any) { listener = ls; } @@ -63,7 +63,7 @@ describe('useDimensions()', () => { disconnect() { disconnect(); } - + }; const { result, unmount } = renderHook(() => useDimensions());