From b39031a340185e53cc488a8a857e92aa615051ed Mon Sep 17 00:00:00 2001 From: Chad Zezula <czezula@silasg.com> Date: Fri, 6 Oct 2017 11:07:22 -0700 Subject: [PATCH] Change all assert.strictEqual() to have actual value 1st and expected value 2nd. --- test/sequential/test-regress-GH-784.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/sequential/test-regress-GH-784.js b/test/sequential/test-regress-GH-784.js index 127d9216269852..4b285020d45a35 100644 --- a/test/sequential/test-regress-GH-784.js +++ b/test/sequential/test-regress-GH-784.js @@ -42,7 +42,7 @@ const server = http.createServer(function(req, res) { }); req.on('end', function() { - assert.strictEqual('PING', body); + assert.strictEqual(body, 'PING'); res.writeHead(200); res.end('PONG'); }); @@ -119,7 +119,7 @@ function ping() { }); res.on('end', function() { - assert.strictEqual('PONG', body); + assert.strictEqual(body, 'PONG'); assert.ok(!hadError); gotEnd = true; afterPing('success'); @@ -151,5 +151,5 @@ process.on('exit', function() { console.error("process.on('exit')"); console.error(responses); - assert.strictEqual(8, responses.length); + assert.strictEqual(responses.length, 8); });