Skip to content

Commit 9bc7d83

Browse files
jdenbroederMylesBorins
authored andcommitted
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 f1c0538 commit 9bc7d83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
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)