Skip to content

Commit 0ab33e1

Browse files
committed
Fix credProtect variables misnamed as credProps
1 parent d434110 commit 0ab33e1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

webauthn-server-core/src/test/scala/com/yubico/webauthn/RelyingPartyRegistrationSpec.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,7 @@ class RelyingPartyRegistrationSpec
12011201
}
12021202

12031203
it("Succeeds regardless of output credProtect policy if credProtect is set with enforceCredentialProtectionPolicy=false or credProtectPolicy=userVerificationOptional.") {
1204-
val genCredPropsInput = for {
1204+
val genCredProtectInput = for {
12051205
enforce <- arbitrary[Boolean]
12061206
policy <-
12071207
if (enforce) Gen.const(CredentialProtectionPolicy.UV_OPTIONAL)
@@ -1211,11 +1211,11 @@ class RelyingPartyRegistrationSpec
12111211
else CredentialProtectionInput.prefer(policy)
12121212
}
12131213
forAll(
1214-
genCredPropsInput,
1214+
genCredProtectInput,
12151215
arbitrary[Option[CredentialProtectionPolicy]],
12161216
) {
12171217
(
1218-
credPropsInput: CredentialProtectionInput,
1218+
credProtectInput: CredentialProtectionInput,
12191219
outputPolicy: Option[CredentialProtectionPolicy],
12201220
) =>
12211221
val authenticatorExtensionOutputs =
@@ -1234,7 +1234,7 @@ class RelyingPartyRegistrationSpec
12341234
.copy(
12351235
requestedExtensions = RegistrationExtensionInputs
12361236
.builder()
1237-
.credProtect(credPropsInput)
1237+
.credProtect(credProtectInput)
12381238
.build()
12391239
)
12401240
.editAuthenticatorData(authData =>

0 commit comments

Comments
 (0)