From 9b3c2e5054c77295ac2494174ccfe7cc9d52e1d2 Mon Sep 17 00:00:00 2001 From: Clement Date: Tue, 6 Nov 2018 15:53:55 +0100 Subject: [PATCH] test: fix argument order in assert.strictEqual() PR-URL: https://github.com/nodejs/node/pull/24147 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: Ruben Bridgewater Reviewed-By: Trivikram Kamat --- test/parallel/test-http-chunked.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-http-chunked.js b/test/parallel/test-http-chunked.js index 9ae2932a5c4149..264a87be6adc7f 100644 --- a/test/parallel/test-http-chunked.js +++ b/test/parallel/test-http-chunked.js @@ -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(); }));