( handler: (req: http.IncomingMessage, res: http.ServerResponse) => void, )
| 20 | * @param handler |
| 21 | */ |
| 22 | export function createClientForHandler( |
| 23 | handler: (req: http.IncomingMessage, res: http.ServerResponse) => void, |
| 24 | ): Client { |
| 25 | const server = http.createServer(handler); |
| 26 | return supertest(server); |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | * Create a SuperTest client for a running RestApplication instance. |
no outgoing calls