MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / createClientForHandler

Function createClientForHandler

packages/testlab/src/client.ts:22–27  ·  view source on GitHub ↗
(
  handler: (req: http.IncomingMessage, res: http.ServerResponse) => void,
)

Source from the content-addressed store, hash-verified

20 * @param handler
21 */
22export 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.

Callers 15

whenIMakeRequestToFunction · 0.90
whenIMakeRequestToFunction · 0.90
whenIMakeRequestToFunction · 0.90
whenIMakeRequestToFunction · 0.90
givenClientFunction · 0.90
givenClientFunction · 0.90
givenClientFunction · 0.90
whenIMakeRequestToFunction · 0.90
whenIRequestFunction · 0.90
whenIMakeRequestToFunction · 0.90

Calls

no outgoing calls

Tested by 12

whenIMakeRequestToFunction · 0.72
whenIMakeRequestToFunction · 0.72
whenIMakeRequestToFunction · 0.72
whenIMakeRequestToFunction · 0.72
givenClientFunction · 0.72
givenClientFunction · 0.72
givenClientFunction · 0.72
whenIMakeRequestToFunction · 0.72
whenIRequestFunction · 0.72
whenIMakeRequestToFunction · 0.72
whenIMakeRequestToFunction · 0.72
givenClientFunction · 0.72