Fix hooks tests types

This commit is contained in:
Alex Gleason 2022-07-06 12:10:21 -05:00
parent 9d85a9f863
commit 882e4b2fda
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ let listener: ((rect: any) => void) | undefined = undefined;
(window as any).ResizeObserver = class ResizeObserver { (window as any).ResizeObserver = class ResizeObserver {
constructor(ls) { constructor(ls: any) {
listener = ls; listener = ls;
} }
@ -63,7 +63,7 @@ describe('useDimensions()', () => {
disconnect() { disconnect() {
disconnect(); disconnect();
} }
}; };
const { result, unmount } = renderHook(() => useDimensions()); const { result, unmount } = renderHook(() => useDimensions());