Skip to content

Commit a8c2bec

Browse files
julianduquejasnell
authored andcommitted
test: replace equal with strictEqual in crypto
Replace assert.equal with assert.strictEqual in crypto cipher-decipher test PR-URL: #9886 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 318f345 commit a8c2bec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-crypto-cipher-decipher.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function testCipher1(key) {
2727
var txt = decipher.update(ciph, 'hex', 'utf8');
2828
txt += decipher.final('utf8');
2929

30-
assert.equal(txt, plaintext, 'encryption and decryption');
30+
assert.strictEqual(txt, plaintext, 'encryption and decryption');
3131

3232
// streaming cipher interface
3333
// NB: In real life, it's not guaranteed that you can get all of it
@@ -41,7 +41,7 @@ function testCipher1(key) {
4141
dStream.end(ciph);
4242
txt = dStream.read().toString('utf8');
4343

44-
assert.equal(txt, plaintext, 'encryption and decryption with streams');
44+
assert.strictEqual(txt, plaintext, 'encryption and decryption with streams');
4545
}
4646

4747

@@ -63,7 +63,7 @@ function testCipher2(key) {
6363
var txt = decipher.update(ciph, 'base64', 'utf8');
6464
txt += decipher.final('utf8');
6565

66-
assert.equal(txt, plaintext, 'encryption and decryption with Base64');
66+
assert.strictEqual(txt, plaintext, 'encryption and decryption with Base64');
6767
}
6868

6969
testCipher1('MySecretKey123');

0 commit comments

Comments
 (0)