(request)
| 831 | |
| 832 | { |
| 833 | async function getParsedBody(request) { |
| 834 | let body = ''; |
| 835 | |
| 836 | for await (const data of request) { |
| 837 | body += data; |
| 838 | } |
| 839 | |
| 840 | try { |
| 841 | return JSON.parse(body); |
| 842 | } catch { |
| 843 | return {}; |
| 844 | } |
| 845 | } |
| 846 | |
| 847 | const str = JSON.stringify({ asd: true }); |
| 848 | const server = http.createServer(common.mustCallAtLeast(async (request, response) => { |
no test coverage detected
searching dependent graphs…