Skip to content

Commit 6787913

Browse files
ryzokukenMylesBorins
authored andcommitted
test: add more information to assert.strictEqual
PR-URL: #19162 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 28880cf commit 6787913

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/parallel/test-crypto-hmac.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,12 @@ for (let i = 0, l = rfc4231.length; i < l; i++) {
269269
expected,
270270
`Test HMAC-${hash} rfc 4231 case ${i + 1}: ${actual} must be ${expected}`
271271
);
272-
assert.strictEqual(actual, strRes, 'Should get same result from stream');
272+
assert.strictEqual(
273+
actual,
274+
strRes,
275+
`Should get same result from stream (hash: ${hash} and case: ${i + 1})` +
276+
` => ${actual} must be ${strRes}`
277+
);
273278
}
274279
}
275280

0 commit comments

Comments
 (0)