From 98fbd3df6a6ed94ec0e813eb1a7affbc3b269ef6 Mon Sep 17 00:00:00 2001 From: "borja (aider)" Date: Sun, 30 Mar 2025 16:41:04 +0200 Subject: [PATCH] fix: update group sync test to match error message format --- tests/unit/services/group-sync.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/services/group-sync.test.ts b/tests/unit/services/group-sync.test.ts index 2436719..a687a54 100644 --- a/tests/unit/services/group-sync.test.ts +++ b/tests/unit/services/group-sync.test.ts @@ -150,7 +150,7 @@ describe('GroupSyncService', () => { json: async () => ({ error: 'Not Found' }) })); - await expect(GroupSyncService.syncGroups()).rejects.toThrow('API request failed: Not Found'); + await expect(GroupSyncService.syncGroups()).rejects.toThrow('API request failed: 404 Not Found'); expect(consoleErrorMock).toHaveBeenCalled(); console.error = originalConsoleError;