Skip to content

Commit

Permalink
test: update strictEqual arguments order
Browse files Browse the repository at this point in the history
The argument order in the strictEqual check against stderr is in the
wrong order. The first argument is now the actual value and the second
argument is the expected value.

PR-URL: #23552
Reviewed-By: Gabriel Schulhof <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
  • Loading branch information
crpahl authored and MylesBorins committed Nov 29, 2018
1 parent 720262b commit 9a79824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-stdin-from-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ childProcess.exec(cmd, common.mustCall(function(err, stdout, stderr) {

assert.ifError(err);
assert.strictEqual(stdout, `hello world\r\n${string}`);
assert.strictEqual('', stderr);
assert.strictEqual(stderr, '');
}));

0 comments on commit 9a79824

Please sign in to comment.