diff --git a/src/app/__tests__/watermelon.service.spec.tsx b/src/app/__tests__/watermelon.service.spec.tsx index 089cf051..4398c1a8 100644 --- a/src/app/__tests__/watermelon.service.spec.tsx +++ b/src/app/__tests__/watermelon.service.spec.tsx @@ -16,4 +16,19 @@ describe('syncDatabaseWithServer', () => { beforeEach(() => { jest.clearAllMocks(); }); + + it('should successfully synchronize database with server', async () => { + const mockChanges = { some: 'changes' }; + const mockTimestamp = new Date().toISOString(); + const mockResponse = { + ok: true, + json: jest.fn().mockResolvedValue({ + data: { + changes: mockChanges, + timestamp: mockTimestamp + }, + message: 'Success' + }) + }; + }); });