Skip to content

Commit

Permalink
test: assert.strictEqual parameters ordered correctly
Browse files Browse the repository at this point in the history
The assert.strictEqual function should have the actual
value first and the expected value second to enable
easier debugging of AssertionErrors.

PR-URL: #23538
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
jdenbroeder authored and jasnell committed Oct 17, 2018
1 parent 07d3f47 commit bd3b52f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-tls-securepair-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ server.listen(0, common.mustCall(function() {
client.stdout.pipe(process.stdout, { end: false });

client.on('exit', common.mustCall(function(code) {
assert.strictEqual(0, code);
assert.strictEqual(code, 0);
server.close();
}));
}));
Expand Down

0 comments on commit bd3b52f

Please sign in to comment.