mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
test: fix variable name for non-RSA keys
PR-URL: https://github.com/nodejs/node/pull/36912 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
0f57902118
commit
ccc6776527
1 file changed
+4
-4
@@ -23,7 +23,7 @@ async function testVerify({
|
||||
noVerifyPublicKey,
|
||||
privateKey,
|
||||
hmacKey,
|
||||
rsaKeys
|
||||
ecdsaKeys
|
||||
] = await Promise.all([
|
||||
subtle.importKey(
|
||||
'spki',
|
||||
@@ -85,7 +85,7 @@ async function testVerify({
|
||||
});
|
||||
|
||||
await assert.rejects(
|
||||
subtle.verify(algorithm, rsaKeys.publicKey, signature, plaintext), {
|
||||
subtle.verify(algorithm, ecdsaKeys.publicKey, signature, plaintext), {
|
||||
message: /Unable to use this key to verify/
|
||||
});
|
||||
|
||||
@@ -138,7 +138,7 @@ async function testSign({
|
||||
noSignPrivateKey,
|
||||
privateKey,
|
||||
hmacKey,
|
||||
rsaKeys,
|
||||
ecdsaKeys
|
||||
] = await Promise.all([
|
||||
subtle.importKey(
|
||||
'spki',
|
||||
@@ -205,7 +205,7 @@ async function testSign({
|
||||
});
|
||||
|
||||
await assert.rejects(
|
||||
subtle.sign(algorithm, rsaKeys.privateKey, plaintext), {
|
||||
subtle.sign(algorithm, ecdsaKeys.privateKey, plaintext), {
|
||||
message: /Unable to use this key to sign/
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user