Skip to content

Commit

Permalink
test: fix ordering of strictEqual actual/expected
Browse files Browse the repository at this point in the history
Change all assert.strictEqual() to have actual value 1st
and expected value 2nd.

PR-URL: #16008
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
  • Loading branch information
czezula authored and jasnell committed Oct 13, 2017
1 parent 4db8472 commit ce9d55d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/sequential/test-regress-GH-784.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
Expand Down Expand Up @@ -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');
Expand Down Expand Up @@ -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);
});

0 comments on commit ce9d55d

Please sign in to comment.