Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f76bb2a

Browse filesBrowse files
julianduqueaddaleax
authored andcommitted
test: refactor test for crypto cipher/decipher iv
Replace assert.equal with assert.strictEqual. PR-URL: #9943 Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 4cc813d commit f76bb2a
Copy full SHA for f76bb2a

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-crypto-cipheriv-decipheriv.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-crypto-cipheriv-decipheriv.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function testCipher1(key, iv) {
2222
var txt = decipher.update(ciph, 'hex', 'utf8');
2323
txt += decipher.final('utf8');
2424

25-
assert.equal(txt, plaintext, 'encryption and decryption with key and iv');
25+
assert.strictEqual(txt, plaintext, 'encryption/decryption with key and iv');
2626

2727
// streaming cipher interface
2828
// NB: In real life, it's not guaranteed that you can get all of it
@@ -36,7 +36,7 @@ function testCipher1(key, iv) {
3636
dStream.end(ciph);
3737
txt = dStream.read().toString('utf8');
3838

39-
assert.equal(txt, plaintext, 'streaming cipher iv');
39+
assert.strictEqual(txt, plaintext, 'streaming cipher iv');
4040
}
4141

4242

@@ -54,7 +54,7 @@ function testCipher2(key, iv) {
5454
var txt = decipher.update(ciph, 'buffer', 'utf8');
5555
txt += decipher.final('utf8');
5656

57-
assert.equal(txt, plaintext, 'encryption and decryption with key and iv');
57+
assert.strictEqual(txt, plaintext, 'encryption/decryption with key and iv');
5858
}
5959

6060
testCipher1('0123456789abcd0123456789', '12345678');

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.