MCPcopy Index your code
hub / github.com/nodejs/node / test

Function test

test/parallel/test-inspector-reported-host.js:9–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7const { NodeInstance } = require('../common/inspector-helper.js');
8
9async 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
19test().then(common.mustCall());

Callers 1

Calls 3

httpGetMethod · 0.95
killMethod · 0.95
okMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…