Skip to content

Commit f093760

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 1bbaace commit f093760

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ crypto.DEFAULT_ENCODING = 'buffer'
2121
varencrypt=crypto.createCipheriv('BF-ECB','SomeRandomBlahz0c5GZVnR','');
2222
varhex=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
vardecrypt=crypto.createDecipheriv('BF-ECB','SomeRandomBlahz0c5GZVnR',
2929
'');
3030
varmsg=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)