|
|
@ -150,7 +150,7 @@ describe('GroupSyncService', () => {
|
|
|
|
json: async () => ({ error: 'Not Found' })
|
|
|
|
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();
|
|
|
|
expect(consoleErrorMock).toHaveBeenCalled();
|
|
|
|
|
|
|
|
|
|
|
|
console.error = originalConsoleError;
|
|
|
|
console.error = originalConsoleError;
|
|
|
|