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

Function checkVersion

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

Source from the content-addressed store, hash-verified

21}
22
23function checkVersion(response) {
24 assert.ok(response);
25 const expected = {
26 'Browser': `node.js/${process.version}`,
27 'Protocol-Version': '1.1',
28 };
29 assert.strictEqual(JSON.stringify(response),
30 JSON.stringify(expected));
31}
32
33function checkBadPath(err) {
34 assert(err instanceof SyntaxError);

Callers 1

runTestFunction · 0.85

Calls 1

okMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…