1'use strict'; 2const common = require('../common'); 3 4common.skipIfInspectorDisabled(); 5 6const assert = require('assert'); 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()); 20