1
0
mirror of synced 2026-05-22 21:33:16 +00:00

Fix Unit Test

Signed-off-by: Josh Cummings <3627351+jzheaux@users.noreply.github.com>
This commit is contained in:
Josh Cummings
2026-04-17 11:15:42 -06:00
parent d3e349c290
commit 63cd037188
@@ -488,7 +488,7 @@ class Webauthn4jRelyingPartyOperationsTests {
* https://www.w3.org/TR/webauthn-3/#sctn-registering-a-new-credential * https://www.w3.org/TR/webauthn-3/#sctn-registering-a-new-credential
* *
* 19. Verify that the "alg" parameter in the credential public key in authData * 19. Verify that the "alg" parameter in the credential public key in authData
* matches the alg attribute of one of the items in options.pubKeyCredParams. * matches the alg attribute of one of the items in pkOptions.pubKeyCredParams.
*/ */
@Test @Test
void registerCredentialWhenAlgDoesNotMatchOptions() { void registerCredentialWhenAlgDoesNotMatchOptions() {
@@ -503,7 +503,7 @@ class Webauthn4jRelyingPartyOperationsTests {
options, new RelyingPartyPublicKey(publicKey, this.label)); options, new RelyingPartyPublicKey(publicKey, this.label));
assertThatRuntimeException().isThrownBy(() -> this.rpOperations.registerCredential(registrationRequest)) assertThatRuntimeException().isThrownBy(() -> this.rpOperations.registerCredential(registrationRequest))
.withMessageContaining("options.pubKeyCredParams"); .withMessageContaining("pkOptions.pubKeyCredParams");
} }
/** /**