chore: regenerate the leaderboards client fixture at 0.1.0
This commit is contained in:
@@ -159,14 +159,14 @@ describe('modules.call', () => {
|
||||
vi.stubGlobal('fetch', fetchMock);
|
||||
|
||||
const result = await client.modules.call<{ ok: boolean }>('quests', 'list', { limit: 10 }, {
|
||||
moduleVersion: '5.0.0',
|
||||
moduleVersion: '0.1.0',
|
||||
});
|
||||
|
||||
expect(result).toEqual({ ok: true });
|
||||
const [url, init] = fetchMock.mock.calls[0];
|
||||
expect(new URL(String(url)).pathname).toBe('/sdk/v1/modules/quests/list');
|
||||
expect(JSON.parse(String(init.body))).toEqual({ args: { limit: 10 } });
|
||||
expect(headersOf(fetchMock, 0).get('X-Rudder-Module-Version')).toBe('quests@5.0.0');
|
||||
expect(headersOf(fetchMock, 0).get('X-Rudder-Module-Version')).toBe('quests@0.1.0');
|
||||
expect(headersOf(fetchMock, 0).get('Idempotency-Key')).toMatch(/^[0-9a-f-]{36}$/);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user