mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 10:25:58 +00:00
global mock
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user