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 <rtrott@gmail.com>
  • Loading branch information
daniel-pittman authored and addaleax committed Dec 5, 2016
1 parent e070588 commit 55b58ba
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 55b58ba

Please sign in to comment.