Skip to content

Commit

Permalink
test: fix argument order in assert.strictEqual()
Browse files Browse the repository at this point in the history
PR-URL: #24147
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
  • Loading branch information
Clement authored and MylesBorins committed Dec 26, 2018
1 parent f46fa90 commit 1588fba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-http-chunked.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ server.listen(0, common.mustCall(() => {
x.setEncoding('utf8');
x.on('data', (c) => data += c);
x.on('end', common.mustCall(() => {
assert.strictEqual('string', typeof data);
assert.strictEqual(typeof data, 'string');
assert.strictEqual(UTF8_STRING, data);
server.close();
}));
Expand Down

0 comments on commit 1588fba

Please sign in to comment.