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 <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 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
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.