Skip to content

Commit 8e2064f

Browse files
czezulatargos
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 <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
1 parent 04b6ae6 commit 8e2064f

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
@@ -42,7 +42,7 @@ const server = http.createServer(function(req, res) {
4242
});
4343

4444
req.on('end', function() {
45-
assert.strictEqual('PING', body);
45+
assert.strictEqual(body, 'PING');
4646
res.writeHead(200);
4747
res.end('PONG');
4848
});
@@ -119,7 +119,7 @@ function ping() {
119119
});
120120

121121
res.on('end', function() {
122-
assert.strictEqual('PONG', body);
122+
assert.strictEqual(body, 'PONG');
123123
assert.ok(!hadError);
124124
gotEnd = true;
125125
afterPing('success');
@@ -151,5 +151,5 @@ process.on('exit', function() {
151151
console.error("process.on('exit')");
152152
console.error(responses);
153153

154-
assert.strictEqual(8, responses.length);
154+
assert.strictEqual(responses.length, 8);
155155
});

0 commit comments

Comments
 (0)