Skip to content

Commit bd3b52f

Browse files
jdenbroederjasnell
authored andcommittedOct 17, 2018
test: assert.strictEqual parameters ordered correctly
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 <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 07d3f47 commit bd3b52f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎test/parallel/test-tls-securepair-server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ server.listen(0, common.mustCall(function() {
137137
client.stdout.pipe(process.stdout, { end: false });
138138

139139
client.on('exit', common.mustCall(function(code) {
140-
assert.strictEqual(0, code);
140+
assert.strictEqual(code, 0);
141141
server.close();
142142
}));
143143
}));

0 commit comments

Comments
 (0)