(response: Response)
| 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 })) |
no test coverage detected