From 7de298ea8139af46682ff278d5c2d764faa7810a Mon Sep 17 00:00:00 2001 From: James Brunton Date: Mon, 18 Aug 2025 09:56:37 +0100 Subject: [PATCH] Remove useless tests --- .../useAddPasswordOperation.test.ts | 19 ------------------- .../useChangePermissionsOperation.test.ts | 19 ------------------- 2 files changed, 38 deletions(-) diff --git a/frontend/src/hooks/tools/addPassword/useAddPasswordOperation.test.ts b/frontend/src/hooks/tools/addPassword/useAddPasswordOperation.test.ts index 5382f2f99..747cd67b7 100644 --- a/frontend/src/hooks/tools/addPassword/useAddPasswordOperation.test.ts +++ b/frontend/src/hooks/tools/addPassword/useAddPasswordOperation.test.ts @@ -49,25 +49,6 @@ describe('useAddPasswordOperation', () => { mockUseToolOperation.mockReturnValue(mockToolOperationReturn); }); - test('should configure useToolOperation with correct parameters', () => { - renderHook(() => useAddPasswordOperation()); - - expect(mockUseToolOperation).toHaveBeenCalledWith({ - operationType: 'addPassword', - endpoint: '/api/v1/security/add-password', - buildFormData: expect.any(Function), - filePrefix: 'translated-addPassword.filenamePrefix_', - multiFileEndpoint: false, - getErrorMessage: 'error-handler-function' - }); - }); - - test('should return the result from useToolOperation', () => { - const { result } = renderHook(() => useAddPasswordOperation()); - - expect(result.current).toBe(mockToolOperationReturn); - }); - test.each([ { description: 'with all parameters filled', diff --git a/frontend/src/hooks/tools/changePermissions/useChangePermissionsOperation.test.ts b/frontend/src/hooks/tools/changePermissions/useChangePermissionsOperation.test.ts index f6cedc0c3..845403841 100644 --- a/frontend/src/hooks/tools/changePermissions/useChangePermissionsOperation.test.ts +++ b/frontend/src/hooks/tools/changePermissions/useChangePermissionsOperation.test.ts @@ -48,25 +48,6 @@ describe('useChangePermissionsOperation', () => { mockUseToolOperation.mockReturnValue(mockToolOperationReturn); }); - test('should configure useToolOperation with correct parameters', () => { - renderHook(() => useChangePermissionsOperation()); - - expect(mockUseToolOperation).toHaveBeenCalledWith({ - operationType: 'changePermissions', - endpoint: '/api/v1/security/add-password', - buildFormData: expect.any(Function), - filePrefix: 'permissions_', - multiFileEndpoint: false, - getErrorMessage: 'error-handler-function' - }); - }); - - test('should return the result from useToolOperation', () => { - const { result } = renderHook(() => useChangePermissionsOperation()); - - expect(result.current).toBe(mockToolOperationReturn); - }); - test.each([ { preventAssembly: false,