test: fix ordering of strictEqual actual/expected
Change all assert.strictEqual() to have actual value 1st and expected value 2nd. PR-URL: https://github.com/nodejs/node/pull/16008 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
This commit is contained in:
parent
4db84724ca
commit
ce9d55d78f
@ -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);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user