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().

PR-URL: #10331
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Italo A. Casas <me@italoacasas.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
radelmann authored and evanlucas committed Jan 4, 2017
1 parent 7ece950 commit 04d82a5
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 04d82a5

Please sign in to comment.