Permalink
Browse files

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>
  • Loading branch information...
ryzokuken authored and jasnell committed Mar 6, 2018
1 parent 9256dbb commit 78a7536db30843f82252c97be91d2d0d7d38f84b
Showing with 6 additions and 1 deletion.
  1. +6 −1 test/parallel/test-crypto-hmac.js
@@ -269,7 +269,12 @@ for (let i = 0, l = rfc4231.length; i < l; i++) {
expected,
`Test HMAC-${hash} rfc 4231 case ${i + 1}: ${actual} must be ${expected}`
);
assert.strictEqual(actual, strRes, 'Should get same result from stream');
assert.strictEqual(
actual,
strRes,
`Should get same result from stream (hash: ${hash} and case: ${i + 1})` +
` => ${actual} must be ${strRes}`
);
}
}

0 comments on commit 78a7536

Please sign in to comment.