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 55b58ba

Browse filesBrowse 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 <rtrott@gmail.com>
1 parent e070588 commit 55b58ba
Copy full SHA for 55b58ba

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

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

Copy file name to clipboardExpand all lines: test/parallel/test-crypto-ecb.js
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.