Skip to content

Commit

Permalink
test: refactor test-stdin-from-file
Browse files Browse the repository at this point in the history
Remove console.log statement. Replace error check with assert.ifError().
  • Loading branch information
radelmann committed Dec 19, 2016
1 parent 92ed1ab commit f34f8c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/parallel/test-stdin-from-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ fs.writeFileSync(tmpFile, string);
childProcess.exec(cmd, common.mustCall(function(err, stdout, stderr) {
fs.unlinkSync(tmpFile);

if (err) throw err;
console.log(stdout);
assert.ifError(err);
assert.strictEqual(stdout, 'hello world\r\n' + string);
assert.strictEqual('', stderr);
}));

0 comments on commit f34f8c1

Please sign in to comment.