Skip to content

Commit 9ddbcc8

Browse files
rajparekhAAMylesBorins
authored andcommitted
test: update test-crypto-from-binary
removed string literal argument to function call strictEqual so that default error message is printed PR-URL: #16011 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 6b8830c commit 9ddbcc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-crypto-from-binary.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ const b = Buffer.from(ucs2_control + ucs2_control, 'ucs2');
3333
.update(datum1.toString('base64'), 'base64')
3434
.digest('hex');
3535
const hash1_direct = crypto.createHash('sha1').update(datum1).digest('hex');
36-
assert.strictEqual(hash1_direct, hash1_converted, 'should hash the same.');
36+
assert.strictEqual(hash1_direct, hash1_converted);
3737

3838
const datum2 = b;
3939
const hash2_converted = crypto.createHash('sha1')
4040
.update(datum2.toString('base64'), 'base64')
4141
.digest('hex');
4242
const hash2_direct = crypto.createHash('sha1').update(datum2).digest('hex');
43-
assert.strictEqual(hash2_direct, hash2_converted, 'should hash the same.');
43+
assert.strictEqual(hash2_direct, hash2_converted);
4444
}

0 commit comments

Comments
 (0)