()
| 28 | } |
| 29 | |
| 30 | function createMockResponse() { |
| 31 | return { |
| 32 | statusCode: 200, |
| 33 | body: undefined, |
| 34 | status(code) { |
| 35 | this.statusCode = code; |
| 36 | return this; |
| 37 | }, |
| 38 | send(payload) { |
| 39 | this.body = payload; |
| 40 | return this; |
| 41 | }, |
| 42 | json(payload) { |
| 43 | this.body = payload; |
| 44 | return this; |
| 45 | }, |
| 46 | }; |
| 47 | } |
| 48 | |
| 49 | async function executeRouteHandlers(handlers, requestOverrides = {}) { |
| 50 | const req = { |
no outgoing calls
no test coverage detected