mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 14:54:33 +00:00
mock user service
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user