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 MylesBorins committed Nov 21, 2017
1 parent dc5df56 commit 517ff1c
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 @@ -21,7 +21,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 @@ -98,7 +98,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 @@ -130,5 +130,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 517ff1c

Please sign in to comment.