Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix variable name for non-RSA keys #36912

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions test/parallel/test-webcrypto-sign-verify-rsa.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async function testVerify({
noVerifyPublicKey,
privateKey,
hmacKey,
rsaKeys
ecdsaKeys
] = await Promise.all([
subtle.importKey(
'spki',
Expand Down Expand Up @@ -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/
});

Expand Down Expand Up @@ -138,7 +138,7 @@ async function testSign({
noSignPrivateKey,
privateKey,
hmacKey,
rsaKeys,
ecdsaKeys
] = await Promise.all([
subtle.importKey(
'spki',
Expand Down Expand Up @@ -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/
});
}
Expand Down