From 1e80edd5ca781ccb597debfa6680b7e02f3fd678 Mon Sep 17 00:00:00 2001 From: LordMathis Date: Wed, 4 Jun 2025 18:41:39 +0200 Subject: [PATCH] Remove unnecessary test --- app/src/hooks/useGitOperations.test.ts | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/app/src/hooks/useGitOperations.test.ts b/app/src/hooks/useGitOperations.test.ts index a2398e2..1046fc7 100644 --- a/app/src/hooks/useGitOperations.test.ts +++ b/app/src/hooks/useGitOperations.test.ts @@ -409,23 +409,5 @@ describe('useGitOperations', () => { expect(pullResult).toBe(false); expect(gitApi.pullChanges).not.toHaveBeenCalled(); }); - - it('handles API returning non-string commit hash', async () => { - const mockCommitAndPush = vi.mocked(gitApi.commitAndPush); - // API might return something unexpected - mockCommitAndPush.mockResolvedValue(null!); - - const { result } = renderHook(() => useGitOperations()); - - await act(async () => { - await result.current.handleCommitAndPush('Test commit'); - }); - - expect(notifications.show).toHaveBeenCalledWith({ - title: 'Success', - message: 'Successfully committed and pushed changes null', - color: 'green', - }); - }); }); });