From 09210a4cb5c4ffd6e064f2ca3e18028e4e82b017 Mon Sep 17 00:00:00 2001 From: Hariss096 Date: Thu, 6 Sep 2018 03:03:04 +0500 Subject: [PATCH] 2 arguments to assert.strictEqual() instead of 3. Removing string literal passed as argument to assert.strictEqual() in order to print the expected value instead of the string. (First issue assigned through Email by Rich Trott) --- test/sequential/test-crypto-timing-safe-equal.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/sequential/test-crypto-timing-safe-equal.js b/test/sequential/test-crypto-timing-safe-equal.js index 6aaf7de2284a67..dcebef29d782b0 100644 --- a/test/sequential/test-crypto-timing-safe-equal.js +++ b/test/sequential/test-crypto-timing-safe-equal.js @@ -6,16 +6,16 @@ if (!common.hasCrypto) const assert = require('assert'); const crypto = require('crypto'); +// 'should consider equal strings to be equal' assert.strictEqual( crypto.timingSafeEqual(Buffer.from('foo'), Buffer.from('foo')), - true, - 'should consider equal strings to be equal' + true ); +// 'should consider unequal strings to be unequal' assert.strictEqual( crypto.timingSafeEqual(Buffer.from('foo'), Buffer.from('bar')), - false, - 'should consider unequal strings to be unequal' + false ); common.expectsError(