Skip to content

Commit 22f9e2f

Browse files
nhoelTrott
authored andcommitted
Update test-crypto-hash.js
1 parent 1b4bb89 commit 22f9e2f

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

test/parallel/test-crypto-hash.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,16 @@ if (!common.hasFipsCrypto) {
4949
`${cryptoType} with ${digest} digest failed to evaluate to expected hash value.`
5050
);
5151
}
52-
cryptoType = 'md5'; digest = 'hex';
52+
cryptoType = 'md5';
53+
digest = 'hex';
5354
assert.strictEqual(a1, '8308651804facb7b9af8ffc53a33a22d6a1c8ac2',
5455
`${cryptoType} with ${digest} digest failed to evaluate to expected hash value.`);
55-
cryptoType = 'sha256';digest = 'base64';
56+
cryptoType = 'sha256';
57+
digest = 'base64';
5658
assert.strictEqual(a2, '2bX1jws4GYKTlxhloUB09Z66PoJZW+y+hq5R8dnx9l4=',
5759
`${cryptoType} with ${digest} digest failed to evaluate to expected hash value.`);
58-
cryptoType = 'sha512'; digest = 'latin1';
60+
cryptoType = 'sha512';
61+
digest = 'latin1';
5962
assert.deepStrictEqual(
6063
a3,
6164
Buffer.from(
@@ -66,7 +69,8 @@ assert.deepStrictEqual(
6669
'\u00c2\u0006\u00da0\u00a1\u00879(G\u00ed\'',
6770
'latin1'),
6871
`${cryptoType} with ${digest} digest failed to evaluate to expected hash value.`);
69-
cryptoType = 'sha1'; digest = 'hex';
72+
cryptoType = 'sha1';
73+
digest = 'hex';
7074
assert.deepStrictEqual(
7175
a4,
7276
Buffer.from('8308651804facb7b9af8ffc53a33a22d6a1c8ac2', 'hex'),

0 commit comments

Comments
 (0)