Skip to content

Commit

Permalink
test: add more information to assert.strictEqual
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ryzokuken authored and MylesBorins committed Sep 6, 2018
1 parent 1a1288d commit f64100a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/parallel/test-crypto-hmac.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,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}`
);
}
}

Expand Down

0 comments on commit f64100a

Please sign in to comment.