mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
test: fix crypto test case to use correct encoding
The callback would have errored out anyway due to the incorrect encoding, and that error is not the point of this test case. PR-URL: https://github.com/nodejs/node/pull/17956 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
1 parent
f87a1a6ca8
commit
591dd4e398
1 file changed
+1
-1
@@ -389,7 +389,7 @@ for (const test of TEST_CASES) {
|
||||
assert.strictEqual(msg, test.plain);
|
||||
} else {
|
||||
// assert that final throws if input data could not be verified!
|
||||
assert.throws(function() { decrypt.final('ascii'); }, errMessages.auth);
|
||||
assert.throws(function() { decrypt.final('hex'); }, errMessages.auth);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user