Skip to content

Commit 072086c

Browse files
committed
squash
1 parent 22f9e2f commit 072086c

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

test/parallel/test-crypto-hash.js

+12-8
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,26 @@ a8 = a8.read();
4141

4242
if (!common.hasFipsCrypto) {
4343
cryptoType = 'md5';
44-
digest = 'latin1'
44+
digest = 'latin1';
4545
const a0 = crypto.createHash(cryptoType).update('Test123').digest(digest);
4646
assert.strictEqual(
4747
a0,
4848
'h\u00ea\u00cb\u0097\u00d8o\fF!\u00fa+\u000e\u0017\u00ca\u00bd\u008c',
49-
`${cryptoType} with ${digest} digest failed to evaluate to expected hash value.`
49+
`${cryptoType} with ${digest} digest failed to evaluate to expected hash`
5050
);
5151
}
5252
cryptoType = 'md5';
5353
digest = 'hex';
54-
assert.strictEqual(a1, '8308651804facb7b9af8ffc53a33a22d6a1c8ac2',
55-
`${cryptoType} with ${digest} digest failed to evaluate to expected hash value.`);
54+
assert.strictEqual(
55+
a1,
56+
'8308651804facb7b9af8ffc53a33a22d6a1c8ac2',
57+
`${cryptoType} with ${digest} digest failed to evaluate to expected hash`);
5658
cryptoType = 'sha256';
5759
digest = 'base64';
58-
assert.strictEqual(a2, '2bX1jws4GYKTlxhloUB09Z66PoJZW+y+hq5R8dnx9l4=',
59-
`${cryptoType} with ${digest} digest failed to evaluate to expected hash value.`);
60+
assert.strictEqual(
61+
a2,
62+
'2bX1jws4GYKTlxhloUB09Z66PoJZW+y+hq5R8dnx9l4=',
63+
`${cryptoType} with ${digest} digest failed to evaluate to expected hash`);
6064
cryptoType = 'sha512';
6165
digest = 'latin1';
6266
assert.deepStrictEqual(
@@ -68,13 +72,13 @@ assert.deepStrictEqual(
6872
'\u00d7\u00d6\u00a2\u00a8\u0085\u00e3<\u0083\u009c\u0093' +
6973
'\u00c2\u0006\u00da0\u00a1\u00879(G\u00ed\'',
7074
'latin1'),
71-
`${cryptoType} with ${digest} digest failed to evaluate to expected hash value.`);
75+
`${cryptoType} with ${digest} digest failed to evaluate to expected hash`);
7276
cryptoType = 'sha1';
7377
digest = 'hex';
7478
assert.deepStrictEqual(
7579
a4,
7680
Buffer.from('8308651804facb7b9af8ffc53a33a22d6a1c8ac2', 'hex'),
77-
`${cryptoType} with ${digest} digest failed to evaluate to expected hash value.`
81+
`${cryptoType} with ${digest} digest failed to evaluate to expected hash`
7882
);
7983

8084
// stream interface should produce the same result.

0 commit comments

Comments
 (0)