Skip to content

Commit

Permalink
test: add more information to assert.strictEqual
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
ryzokuken authored and MylesBorins committed Mar 7, 2018
1 parent 28880cf commit 6787913
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 @@ -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}`
);
}
}

Expand Down

0 comments on commit 6787913

Please sign in to comment.