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 <rtrott@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
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

Lines changed: 6 additions & 1 deletion
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)