Skip to content

Commit f64100a

Browse files
ryzokukenMylesBorins
authored andcommitted
test: add more information to assert.strictEqual
Backport-PR-URL: #22380 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 1a1288d commit f64100a

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
@@ -253,7 +253,12 @@ for (let i = 0, l = rfc4231.length; i < l; i++) {
253253
expected,
254254
`Test HMAC-${hash} rfc 4231 case ${i + 1}: ${actual} must be ${expected}`
255255
);
256-
assert.strictEqual(actual, strRes, 'Should get same result from stream');
256+
assert.strictEqual(
257+
actual,
258+
strRes,
259+
`Should get same result from stream (hash: ${hash} and case: ${i + 1})` +
260+
` => ${actual} must be ${strRes}`
261+
);
257262
}
258263
}
259264

0 commit comments

Comments
 (0)