MCPcopy
hub / github.com/lukeautry/tsoa / verifyPostRequest

Function verifyPostRequest

tests/integration/utils.ts:38–40  ·  view source on GitHub ↗
(app: App, path: string, data: any, verifyResponse: (err: any, res: request.Response) => any, expectedStatus?: number)

Source from the content-addressed store, hash-verified

36}
37
38export function verifyPostRequest(app: App, path: string, data: any, verifyResponse: (err: any, res: request.Response) => any, expectedStatus?: number) {
39 return verifyRequest(app, verifyResponse, request => request.post(path).send(data), expectedStatus);
40}
41
42export function verifyFileUploadRequest(
43 app: App,

Calls 2

postMethod · 0.80
verifyRequestFunction · 0.70

Tested by

no test coverage detected