(body, status = 200)
| 4 | const assert = require('node:assert/strict'); |
| 5 | |
| 6 | function jsonResponse(body, status = 200) { |
| 7 | return { |
| 8 | ok: status >= 200 && status < 300, |
| 9 | status, |
| 10 | json: async () => body, |
| 11 | text: async () => JSON.stringify(body), |
| 12 | }; |
| 13 | } |
| 14 | |
| 15 | function loadProxyWithHubFetch(hubFetchImpl) { |
| 16 | const hubFetchPath = require.resolve('../src/gep/hubFetch'); |
no outgoing calls
no test coverage detected