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: nodejs#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 kiyomizumia committed Nov 15, 2018
1 parent 41d4a17 commit d8c3c5f
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 d8c3c5f

Please sign in to comment.