Skip to content

Commit 18479d3

Browse files
czezulaMylesBorins
authored andcommitted
test: fix ordering of strictEqual actual/expected
Change all assert.strictEqual() to have actual value 1st and expected value 2nd. PR-URL: #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>
1 parent 7647d41 commit 18479d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/sequential/test-regress-GH-784.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const server = http.createServer(function(req, res) {
2121
});
2222

2323
req.on('end', function() {
24-
assert.strictEqual('PING', body);
24+
assert.strictEqual(body, 'PING');
2525
res.writeHead(200);
2626
res.end('PONG');
2727
});
@@ -98,7 +98,7 @@ function ping() {
9898
});
9999

100100
res.on('end', function() {
101-
assert.strictEqual('PONG', body);
101+
assert.strictEqual(body, 'PONG');
102102
assert.ok(!hadError);
103103
gotEnd = true;
104104
afterPing('success');
@@ -130,5 +130,5 @@ process.on('exit', function() {
130130
console.error("process.on('exit')");
131131
console.error(responses);
132132

133-
assert.strictEqual(8, responses.length);
133+
assert.strictEqual(responses.length, 8);
134134
});

0 commit comments

Comments
 (0)