(n)
| 32 | }); |
| 33 | |
| 34 | function test(n) { |
| 35 | get(`http://localhost:${server.address().port}/${n}`, common.mustCall(function(res) { |
| 36 | res.setEncoding('utf8'); |
| 37 | |
| 38 | let body = ''; |
| 39 | res.on('data', function(chunk) { |
| 40 | body += chunk; |
| 41 | }); |
| 42 | |
| 43 | res.on('end', common.mustCall(function() { |
| 44 | assert.deepStrictEqual(JSON.parse(body), { state: `/${n}` }); |
| 45 | })); |
| 46 | })); |
| 47 | } |
| 48 | |
| 49 | server.listen(0, common.mustCall(function() { |
| 50 | server.unref(); |
no test coverage detected
searching dependent graphs…