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

Function checkListResponse

test/parallel/test-inspector.js:9–21  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

7const { NodeInstance } = require('../common/inspector-helper.js');
8
9function checkListResponse(response) {
10 const expectedLength = 1;
11 assert.strictEqual(
12 response.length,
13 expectedLength,
14 `Expected response length ${response.length} to be ${expectedLength}.`
15 );
16 assert.ok(response[0].devtoolsFrontendUrl);
17 assert.match(
18 response[0].webSocketDebuggerUrl,
19 /ws:\/\/localhost:\d+\/[0-9A-Fa-f]{8}-/,
20 );
21}
22
23function checkVersion(response) {
24 assert.ok(response);

Callers 1

runTestFunction · 0.85

Calls 2

matchMethod · 0.65
okMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…