From dc28b90e0a983032d0c4dcae2d082fb07369ab5c Mon Sep 17 00:00:00 2001 From: "davidovrelid.com" Date: Tue, 29 Oct 2024 10:18:22 +0100 Subject: [PATCH] fixed eslint issue --- .../src/hooks/useOrgAppScopedStorage.test.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/libs/studio-hooks/src/hooks/useOrgAppScopedStorage.test.tsx b/frontend/libs/studio-hooks/src/hooks/useOrgAppScopedStorage.test.tsx index 068e2ce404c..760240946b5 100644 --- a/frontend/libs/studio-hooks/src/hooks/useOrgAppScopedStorage.test.tsx +++ b/frontend/libs/studio-hooks/src/hooks/useOrgAppScopedStorage.test.tsx @@ -20,7 +20,7 @@ describe('useOrgAppScopedStorage', () => { it.each(storagesToTest)( 'initializes ScopedStorageImpl with correct storage scope, %s', (storage) => { - const result = renderUseOrgAppScopedStorage({ storage }); + const { result } = renderUseOrgAppScopedStorage({ storage }); result.current.setItem('key', 'value'); @@ -32,7 +32,7 @@ describe('useOrgAppScopedStorage', () => { ); it.each(storagesToTest)('should retrieve parsed objects from %s', (storage) => { - const result = renderUseOrgAppScopedStorage({ storage }); + const { result } = renderUseOrgAppScopedStorage({ storage }); result.current.setItem('person', { name: 'John', age: 18 }); @@ -43,7 +43,7 @@ describe('useOrgAppScopedStorage', () => { }); it.each(storagesToTest)('should be possible to remove item from %s', (storage) => { - const result = renderUseOrgAppScopedStorage({ storage }); + const { result } = renderUseOrgAppScopedStorage({ storage }); result.current.setItem('key', 'value'); result.current.removeItem('key'); @@ -51,7 +51,7 @@ describe('useOrgAppScopedStorage', () => { }); it('should use localStorage as default storage', () => { - const result = renderUseOrgAppScopedStorage({}); + const { result } = renderUseOrgAppScopedStorage({}); result.current.setItem('key', 'value'); expect(window.localStorage.getItem(scopedStorageKey)).toBe('{"key":"value"}'); @@ -65,5 +65,5 @@ const renderUseOrgAppScopedStorage = ({ storage }: UseOrgAppScopedStorage) => { storage, }), ); - return result; + return { result }; };