(status: number, body: unknown)
| 4 | import { classifyResponse } from './error-mapper' |
| 5 | |
| 6 | function res(status: number, body: unknown): Response { |
| 7 | return new Response(typeof body === 'string' ? body : JSON.stringify(body), { |
| 8 | status, |
| 9 | headers: { 'content-type': 'application/json' }, |
| 10 | }) |
| 11 | } |
| 12 | |
| 13 | const req = new Request('https://dify.test/openapi/v1/apps') |
| 14 |
no outgoing calls
no test coverage detected