Skip to content

Commit 6787913

Browse files
ryzokukenMylesBorins
authored andcommitted
test: add more information to assert.strictEqual
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 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)