Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: change message on strictEqual
  • Loading branch information
keldorus committed Nov 6, 2017
commit abf06e5e0f4e5ce0e13f7fbb9215e720c34e91af
12 changes: 10 additions & 2 deletions test/parallel/test-fs-readfile-pipe-large.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,16 @@ const node = JSON.stringify(process.execPath);
const cmd = `cat ${filename} | ${node} ${f} child`;
exec(cmd, { maxBuffer: 1000000 }, function(err, stdout, stderr) {
assert.ifError(err);
assert.strictEqual(stdout, dataExpected, 'it reads the file and outputs it');
assert.strictEqual(stderr, '', 'it does not write to stderr');
assert.strictEqual(
stdout,
dataExpected,
`expect it reads the file and outputs 999999 'a' but got : ${stdout}`
);
assert.strictEqual(
stderr,
'',
`expect that it does not write to stderr, but got : ${stderr}`
);
console.log('ok');
});

Expand Down