()
| 7 | const { NodeInstance } = require('../common/inspector-helper.js'); |
| 8 | |
| 9 | async function test() { |
| 10 | const madeUpHost = '111.111.111.111:11111'; |
| 11 | const child = new NodeInstance(undefined, 'var a = 1'); |
| 12 | const response = await child.httpGet(null, '/json', madeUpHost); |
| 13 | assert.ok( |
| 14 | response[0].webSocketDebuggerUrl.startsWith(`ws://${madeUpHost}`), |
| 15 | response[0].webSocketDebuggerUrl); |
| 16 | child.kill(); |
| 17 | } |
| 18 | |
| 19 | test().then(common.mustCall()); |
no test coverage detected
searching dependent graphs…