| 134 | it('creates a device auth request using app mode', async () => { |
| 135 | const seenRequests: string[] = []; |
| 136 | const fetch: FetchLike = input => { |
| 137 | seenRequests.push(String(input)); |
| 138 | return jsonResponse( |
| 139 | { |
| 140 | code: 'ABCD-2345', |
| 141 | verificationUrl: 'https://app.kilo.ai/device-auth?code=ABCD-2345&app=1', |
| 142 | }, |
| 143 | { status: 200 } |
| 144 | ); |
| 145 | }; |
| 146 | |
| 147 | await expect( |
| 148 | createDeviceAuthRequest({ apiBaseUrl: 'https://app.kilo.ai/', fetch }) |
no test coverage detected