mock user service

This commit is contained in:
Max Peintner
2023-07-04 09:40:34 +02:00
parent 6612ddefd7
commit c0beb5ce52

View File

@@ -23,11 +23,11 @@ describe("/passkey/login", () => {
});
removeStub(
"zitadel.user.v2alpha.SessionService",
"zitadel.user.v2alpha.UserService",
"ListAuthenticationMethodTypes"
);
addStub(
"zitadel.user.v2alpha.SessionService",
"zitadel.user.v2alpha.UserService",
"ListAuthenticationMethodTypes",
{
authMethodTypes: [1], // 1 for password authentication
@@ -62,11 +62,11 @@ describe("/passkey/login", () => {
});
removeStub(
"zitadel.user.v2alpha.SessionService",
"zitadel.user.v2alpha.UserService",
"ListAuthenticationMethodTypes"
);
addStub(
"zitadel.user.v2alpha.SessionService",
"zitadel.user.v2alpha.UserService",
"ListAuthenticationMethodTypes",
{
authMethodTypes: [2], // 2 for passwordless authentication