MCPcopy Create free account
hub / github.com/nodejs/node / checkOutput

Function checkOutput

test/internet/test-snapshot-dns-resolve.js:23–27  ·  view source on GitHub ↗
(stderr, stdout)

Source from the content-addressed store, hash-verified

21
22tmpdir.refresh();
23function checkOutput(stderr, stdout) {
24 assert(stdout.includes('hostnames: ['));
25 assert(stdout.includes('addresses: ['));
26 assert.strictEqual(stdout.trim().split('\n').length, 2);
27}
28{
29 const { stderr, stdout } = buildSnapshot(entry, env);
30 checkOutput(stderr, stdout);

Callers 1

Calls 3

includesMethod · 0.80
assertFunction · 0.50
splitMethod · 0.45

Tested by

no test coverage detected