From 37c3dd0adfd847d955fa9cdd960ccc4ef0c15678 Mon Sep 17 00:00:00 2001 From: Raj Parekh Date: Fri, 6 Oct 2017 13:48:31 -0500 Subject: [PATCH] test: fixed crypto from binary test removed string literal argument to function call strictEqual so that default error message is printed --- test/parallel/test-crypto-from-binary.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-crypto-from-binary.js b/test/parallel/test-crypto-from-binary.js index ed1be9b3157229..435e0d82da5396 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); }