Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: update test-crypto-from-binary
Browse files Browse the repository at this point in the history
removed string literal argument to function call strictEqual
so that default error message is printed

PR-URL: #16011
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
rajparekhAA authored and MylesBorins committed Nov 16, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 726c5c4 commit b187ae4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-crypto-from-binary.js
Original file line number Diff line number Diff line change
@@ -33,12 +33,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);
}

0 comments on commit b187ae4

Please sign in to comment.