@@ -41,22 +41,26 @@ a8 = a8.read();
4141
4242if ( ! 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}
5252cryptoType = 'md5' ;
5353digest = '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` ) ;
5658cryptoType = 'sha256' ;
5759digest = '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` ) ;
6064cryptoType = 'sha512' ;
6165digest = 'latin1' ;
6266assert . 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` ) ;
7276cryptoType = 'sha1' ;
7377digest = 'hex' ;
7478assert . 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