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