chore: regenerate the leaderboards client fixture at 0.1.0
CI / check (push) Successful in 15s
CI / publish (push) Has been skipped

This commit is contained in:
edmand46
2026-09-21 10:53:19 +03:00
parent aa9d9800c9
commit 83e3f78823
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -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}$/);
});