diff --git a/lib/__tests__/jmap-contact-client.test.ts b/lib/__tests__/jmap-contact-client.test.ts index 7a054a6f..ec1aea62 100644 --- a/lib/__tests__/jmap-contact-client.test.ts +++ b/lib/__tests__/jmap-contact-client.test.ts @@ -122,10 +122,15 @@ describe('JMAPClient contact methods', () => { describe('getContacts', () => { it('should return contacts from server', async () => { const client = createClient(); - mockFetch({ + const spy = vi.spyOn(globalThis, 'fetch'); + mockFetchOnce(spy, { methodResponses: [ - ['ContactCard/query', { ids: ['contact-1'] }, '0'], - ['ContactCard/get', { list: [mockContact] }, '1'], + ['ContactCard/query', { ids: ['contact-1'] }, 'q'], + ], + }); + mockFetchOnce(spy, { + methodResponses: [ + ['ContactCard/get', { list: [mockContact] }, 'g'], ], });