diff --git a/src/app/__tests__/watermelon.service.spec.tsx b/src/app/__tests__/watermelon.service.spec.tsx index 826ddb60..539cf54a 100644 --- a/src/app/__tests__/watermelon.service.spec.tsx +++ b/src/app/__tests__/watermelon.service.spec.tsx @@ -56,5 +56,15 @@ describe('syncDatabaseWithServer', () => { }) }) ); + + expect(fetch).toHaveBeenCalledWith( + expect.stringMatching(/\/api\/usuario\/sync\/pull_users\?lastPulledAt=0&schemaVersion=1&migration=1/), + expect.objectContaining({ + method: 'GET', + headers: expect.objectContaining({ + Authorization: `Bearer ${mockToken}` + }) + }) + ); }); });