mirror of
https://github.com/bitwarden/server.git
synced 2024-11-25 12:45:18 +01:00
fix: broken webauthn controller tests (#3421)
This commit is contained in:
parent
f29d3e79a5
commit
35500b197d
@ -142,7 +142,7 @@ public class WebAuthnControllerTests
|
|||||||
.GetUserByPrincipalAsync(default)
|
.GetUserByPrincipalAsync(default)
|
||||||
.ReturnsForAnyArgs(user);
|
.ReturnsForAnyArgs(user);
|
||||||
sutProvider.GetDependency<IUserService>()
|
sutProvider.GetDependency<IUserService>()
|
||||||
.CompleteWebAuthLoginRegistrationAsync(user, requestModel.Name, createOptions, Arg.Any<AuthenticatorAttestationRawResponse>())
|
.CompleteWebAuthLoginRegistrationAsync(user, requestModel.Name, createOptions, Arg.Any<AuthenticatorAttestationRawResponse>(), false)
|
||||||
.Returns(true);
|
.Returns(true);
|
||||||
sutProvider.GetDependency<IDataProtectorTokenFactory<WebAuthnCredentialCreateOptionsTokenable>>()
|
sutProvider.GetDependency<IDataProtectorTokenFactory<WebAuthnCredentialCreateOptionsTokenable>>()
|
||||||
.Unprotect(requestModel.Token)
|
.Unprotect(requestModel.Token)
|
||||||
|
Loading…
Reference in New Issue
Block a user