Browse Source

test: use assert.strictEqual in test-crypto-ecb

Updated test-crypto-ecb.js to change assert.equal
to assert.strictEqual.

PR-URL: https://github.com/nodejs/node/pull/9980
Reviewed-By: Rich Trott <rtrott@gmail.com>
v7.x
Daniel Pittman 8 years ago
committed by Anna Henningsen
parent
commit
55b58baed1
No known key found for this signature in database GPG Key ID: D8B9F5AEAE84E4CF
  1. 4
      test/parallel/test-crypto-ecb.js

4
test/parallel/test-crypto-ecb.js

@ -21,7 +21,7 @@ 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() {
@ -29,5 +29,5 @@ crypto.DEFAULT_ENCODING = 'buffer';
'');
var msg = decrypt.update('6D385F424AAB0CFBF0BB86E07FFB7D71', 'hex', 'ascii');
msg += decrypt.final('ascii');
assert.equal(msg, 'Hello World!');
assert.strictEqual(msg, 'Hello World!');
}());

Loading…
Cancel
Save