Skip to content

Commit ccc6776

Browse files
committed
test: fix variable name for non-RSA keys
PR-URL: #36912 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 0f57902 commit ccc6776

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/parallel/test-webcrypto-sign-verify-rsa.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async function testVerify({
2323
noVerifyPublicKey,
2424
privateKey,
2525
hmacKey,
26-
rsaKeys
26+
ecdsaKeys
2727
] = await Promise.all([
2828
subtle.importKey(
2929
'spki',
@@ -85,7 +85,7 @@ async function testVerify({
8585
});
8686

8787
await assert.rejects(
88-
subtle.verify(algorithm, rsaKeys.publicKey, signature, plaintext), {
88+
subtle.verify(algorithm, ecdsaKeys.publicKey, signature, plaintext), {
8989
message: /Unable to use this key to verify/
9090
});
9191

@@ -138,7 +138,7 @@ async function testSign({
138138
noSignPrivateKey,
139139
privateKey,
140140
hmacKey,
141-
rsaKeys,
141+
ecdsaKeys
142142
] = await Promise.all([
143143
subtle.importKey(
144144
'spki',
@@ -205,7 +205,7 @@ async function testSign({
205205
});
206206

207207
await assert.rejects(
208-
subtle.sign(algorithm, rsaKeys.privateKey, plaintext), {
208+
subtle.sign(algorithm, ecdsaKeys.privateKey, plaintext), {
209209
message: /Unable to use this key to sign/
210210
});
211211
}

0 commit comments

Comments
 (0)