Skip to content

Commit 55b58ba

Browse files
daniel-pittmanaddaleax
authored andcommitted
test: use assert.strictEqual in test-crypto-ecb
Updated test-crypto-ecb.js to change assert.equal to assert.strictEqual. PR-URL: #9980 Reviewed-By: Rich Trott <[email protected]>
1 parent e070588 commit 55b58ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-crypto-ecb.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ crypto.DEFAULT_ENCODING = 'buffer';
2121
var encrypt = crypto.createCipheriv('BF-ECB', 'SomeRandomBlahz0c5GZVnR', '');
2222
var hex = encrypt.update('Hello World!', 'ascii', 'hex');
2323
hex += encrypt.final('hex');
24-
assert.equal(hex.toUpperCase(), '6D385F424AAB0CFBF0BB86E07FFB7D71');
24+
assert.strictEqual(hex.toUpperCase(), '6D385F424AAB0CFBF0BB86E07FFB7D71');
2525
}());
2626

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

0 commit comments

Comments
 (0)