use before stub

This commit is contained in:
Max Peintner
2024-11-22 09:41:44 +01:00
parent 61bb6ac756
commit ff73d8e3cc
2 changed files with 10 additions and 1 deletions

View File

@@ -10,6 +10,16 @@ describe("register", () => {
result: [{ id: "256088834543534543" }],
},
});
stub("zitadel.settings.v2.SettingsService", "GetLoginSettings", {
data: {
settings: {
passkeysType: 1,
allowRegister: true,
allowUsernamePassword: true,
defaultRedirectUri: "",
},
},
});
stub("zitadel.user.v2.UserService", "AddHumanUser", {
data: {
userId: "221394658884845598",

View File

@@ -118,7 +118,6 @@ export function RegisterForm({
const { errors } = formState;
const [tosAndPolicyAccepted, setTosAndPolicyAccepted] = useState(false);
console.log(loginSettings);
return (
<form className="w-full">
<div className="grid grid-cols-2 gap-4 mb-4">