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 MylesBorins committed Jan 23, 2017
1 parent b5b1ca6 commit e197129
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 e197129

Please sign in to comment.