summaryrefslogtreecommitdiff
path: root/test/parallel/test-crypto-from-binary.js
diff options
context:
space:
mode:
authorRaj Parekh <raj.parekh@aa.com>2017-10-06 13:48:31 -0500
committerJames M Snell <jasnell@gmail.com>2017-10-12 18:38:21 -0700
commit7bc6dd02a4a2ba0f5bea25f2f09e066821a9577a (patch)
tree0279bbdeba748e47033124ad601a5da94d84d402 /test/parallel/test-crypto-from-binary.js
parent9943cb2950f392bea45f7e1dbe0da53385af2188 (diff)
downloadandroid-node-v8-7bc6dd02a4a2ba0f5bea25f2f09e066821a9577a.tar.gz
android-node-v8-7bc6dd02a4a2ba0f5bea25f2f09e066821a9577a.tar.bz2
android-node-v8-7bc6dd02a4a2ba0f5bea25f2f09e066821a9577a.zip
test: update test-crypto-from-binary
removed string literal argument to function call strictEqual so that default error message is printed PR-URL: https://github.com/nodejs/node/pull/16011 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-crypto-from-binary.js')
-rw-r--r--test/parallel/test-crypto-from-binary.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-crypto-from-binary.js b/test/parallel/test-crypto-from-binary.js
index ed1be9b315..435e0d82da 100644
--- a/test/parallel/test-crypto-from-binary.js
+++ b/test/parallel/test-crypto-from-binary.js
@@ -54,12 +54,12 @@ const b = Buffer.from(ucs2_control + ucs2_control, 'ucs2');
.update(datum1.toString('base64'), 'base64')
.digest('hex');
const hash1_direct = crypto.createHash('sha1').update(datum1).digest('hex');
- assert.strictEqual(hash1_direct, hash1_converted, 'should hash the same.');
+ assert.strictEqual(hash1_direct, hash1_converted);
const datum2 = b;
const hash2_converted = crypto.createHash('sha1')
.update(datum2.toString('base64'), 'base64')
.digest('hex');
const hash2_direct = crypto.createHash('sha1').update(datum2).digest('hex');
- assert.strictEqual(hash2_direct, hash2_converted, 'should hash the same.');
+ assert.strictEqual(hash2_direct, hash2_converted);
}