From 58faae9f3a8e173fc9be348759f8593dead53abc Mon Sep 17 00:00:00 2001 From: Derek Date: Fri, 12 Oct 2018 11:29:32 -0700 Subject: [PATCH] test: fix assert.strictEqual() argument order MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/23598 Reviewed-By: James M Snell Reviewed-By: Anna Henningsen Reviewed-By: Ruben Bridgewater Reviewed-By: Сковорода Никита Андреевич Reviewed-By: Colin Ihrig Reviewed-By: Trivikram Kamat Reviewed-By: Gireesh Punathil Reviewed-By: Sakthipriyan Vairamani --- test/parallel/test-https-eof-for-eom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-https-eof-for-eom.js b/test/parallel/test-https-eof-for-eom.js index 2e42680c7d6d5f..b2f178654f6de9 100644 --- a/test/parallel/test-https-eof-for-eom.js +++ b/test/parallel/test-https-eof-for-eom.js @@ -75,7 +75,7 @@ server.listen(0, common.mustCall(function() { server.close(); console.log('3) Client got response headers.'); - assert.strictEqual('gws', res.headers.server); + assert.strictEqual(res.headers.server, 'gws'); res.setEncoding('utf8'); res.on('data', function(s) { @@ -84,7 +84,7 @@ server.listen(0, common.mustCall(function() { res.on('end', common.mustCall(function() { console.log('5) Client got "end" event.'); - assert.strictEqual('hello world\nhello world\n', bodyBuffer); + assert.strictEqual(bodyBuffer, 'hello world\nhello world\n'); })); })); }));