Skip to content

Commit

Permalink
test: use assert.strictEqual in test-crypto-ecb
Browse files Browse the repository at this point in the history
Updated test-crypto-ecb.js to change assert.equal
to assert.strictEqual.

PR-URL: #9980
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
daniel-pittman authored and MylesBorins committed Dec 20, 2016
1 parent 9103c3d commit 76645e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-crypto-ecb.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ crypto.DEFAULT_ENCODING = 'buffer';
var encrypt = crypto.createCipheriv('BF-ECB', 'SomeRandomBlahz0c5GZVnR', '');
var hex = encrypt.update('Hello World!', 'ascii', 'hex');
hex += encrypt.final('hex');
assert.equal(hex.toUpperCase(), '6D385F424AAB0CFBF0BB86E07FFB7D71');
assert.strictEqual(hex.toUpperCase(), '6D385F424AAB0CFBF0BB86E07FFB7D71');
}());

(function() {
var decrypt = crypto.createDecipheriv('BF-ECB', 'SomeRandomBlahz0c5GZVnR',
'');
var msg = decrypt.update('6D385F424AAB0CFBF0BB86E07FFB7D71', 'hex', 'ascii');
msg += decrypt.final('ascii');
assert.equal(msg, 'Hello World!');
assert.strictEqual(msg, 'Hello World!');
}());

0 comments on commit 76645e8

Please sign in to comment.