Skip to content

Commit 07d3f47

Browse files
Ivan Lukasevychjasnell
Ivan Lukasevych
authored andcommitted
test: fix assert.strictEqual() arguments order
PR-URL: #23539 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent ef2cbf8 commit 07d3f47

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: test/parallel/test-tls-set-encoding.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ server.listen(0, function() {
6464
// readyState is deprecated but we want to make
6565
// sure this isn't triggering an assert in lib/net.js
6666
// See https://github.com/nodejs/node-v0.x-archive/issues/1069.
67-
assert.strictEqual('closed', client.readyState);
67+
assert.strictEqual(client.readyState, 'closed');
6868

6969
// Confirming the buffer string is encoded in ASCII
7070
// and thus does NOT match the UTF8 string
71-
assert.notStrictEqual(buffer, messageUtf8);
71+
assert.notStrictEqual(messageUtf8, buffer);
7272

7373
// Confirming the buffer string is encoded in ASCII
7474
// and thus does equal the ASCII string representation
75-
assert.strictEqual(buffer, messageAscii);
75+
assert.strictEqual(messageAscii, buffer);
7676

7777
server.close();
7878
});

0 commit comments

Comments
 (0)