Skip to content

Commit 14e07c9

Browse files
radelmannMylesBorins
authored andcommitted
test: refactor test-stdin-from-file
Remove console.log statement. Replace error check with assert.ifError(). PR-URL: #10331 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Italo A. Casas <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 0e51cbb commit 14e07c9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/parallel/test-stdin-from-file.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ fs.writeFileSync(tmpFile, string);
3333
childProcess.exec(cmd, common.mustCall(function(err, stdout, stderr) {
3434
fs.unlinkSync(tmpFile);
3535

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

0 commit comments

Comments
 (0)