global mock

This commit is contained in:
peintnermax
2023-08-02 14:47:38 +02:00
parent 5cbb37f882
commit d0445d6147
2 changed files with 20 additions and 5 deletions

View File

@@ -5,11 +5,6 @@ const IDP_URL = "https://google.com";
describe("register idps", () => {
beforeEach(() => {
stub("zitadel.user.v2alpha.UserService", "StartIdentityProviderFlow", {
data: {
authUrl: IDP_URL,
},
});
stub(
"zitadel.settings.v2alpha.SettingsService",
"GetActiveIdentityProviders",
@@ -25,6 +20,11 @@ describe("register idps", () => {
},
}
);
stub("zitadel.user.v2alpha.UserService", "StartIdentityProviderFlow", {
data: {
authUrl: IDP_URL,
},
});
});
it("should show a custom text on the idp button", () => {

View File

@@ -17,6 +17,21 @@
}
}
},
{
"service": "zitadel.settings.v2alpha.SettingsService",
"method": "GetActiveIdentityProviders",
"out": {
"data": {
"identityProviders": [
{
"id": "123",
"name": "Hubba bubba",
"type": 10
}
]
}
}
},
{
"service": "zitadel.settings.v2alpha.SettingsService",
"method": "GetPasswordComplexitySettings",