MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / pollWithResponse

Function pollWithResponse

apps/extension/src/shared/auth.test.ts:157–162  ·  view source on GitHub ↗
(response: Response)

Source from the content-addressed store, hash-verified

155
156 it('maps poll status codes to pending, approved, denied, and expired states', async () => {
157 const pollWithResponse = (response: Response) =>
158 pollDeviceAuthCode({
159 apiBaseUrl: 'https://app.kilo.ai',
160 code: 'ABCD-2345',
161 fetch: () => response,
162 });
163
164 await expect(
165 pollWithResponse(jsonResponse({ status: 'pending' }, { status: 202 }))

Callers 1

auth.test.tsFile · 0.85

Calls 1

pollDeviceAuthCodeFunction · 0.90

Tested by

no test coverage detected