Skip to content

Commit

Permalink
test: fix invalid argument order in test-http-expect-continue.js
Browse files Browse the repository at this point in the history
`assert.strictEqual` expects arguments in the following order:

actual, expected[, message]

PR-URL: nodejs#24138
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
  • Loading branch information
mroderick authored and kiyomizumia committed Nov 15, 2018
1 parent 13f7fd8 commit ec732c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-http-expect-continue.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ server.on('listening', common.mustCall(() => {
}));
req.on('response', common.mustCall((res) => {
assert.ok(got_continue, 'Full response received before 100 Continue');
assert.strictEqual(200, res.statusCode,
assert.strictEqual(res.statusCode, 200,
`Final status code was ${res.statusCode}, not 200.`);
res.setEncoding('utf8');
res.on('data', function(chunk) { body += chunk; });
Expand Down

0 comments on commit ec732c5

Please sign in to comment.