Skip to content

Commit

Permalink
test: fix assert.strictEqual() arguments order
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Ivan Lukasevych authored and MylesBorins committed Nov 29, 2018
1 parent f2d1045 commit f1c0538
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/parallel/test-tls-set-encoding.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ server.listen(0, function() {
// readyState is deprecated but we want to make
// sure this isn't triggering an assert in lib/net.js
// See https://github.com/nodejs/node-v0.x-archive/issues/1069.
assert.strictEqual('closed', client.readyState);
assert.strictEqual(client.readyState, 'closed');

// Confirming the buffer string is encoded in ASCII
// and thus does NOT match the UTF8 string
assert.notStrictEqual(buffer, messageUtf8);
assert.notStrictEqual(messageUtf8, buffer);

// Confirming the buffer string is encoded in ASCII
// and thus does equal the ASCII string representation
assert.strictEqual(buffer, messageAscii);
assert.strictEqual(messageAscii, buffer);

server.close();
});
Expand Down

0 comments on commit f1c0538

Please sign in to comment.