Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
+4
-6
@@ -14,13 +14,11 @@ vi.mock("~/utils/db/appConfiguration.db.server", () => ({ getAppConfiguration: v
|
||||
vi.mock("~/utils/data/useRootData", () => ({ useRootData: vi.fn() }));
|
||||
vi.mock("~/components/ui/errors/ServerError", () => ({ default: () => null }));
|
||||
vi.mock("~/utils/db/tenants/tenantIpAddress.db.server", () => ({ createUniqueTenantIpAddress: vi.fn() }));
|
||||
vi.mock("~/utils/server/IpUtils", () => ({ getClientIPAddress: vi.fn() }));
|
||||
vi.mock("~/utils/server/IpUtils", () => ({ getTrustedClientIpOrNull: vi.fn() }));
|
||||
vi.mock("~/modules/metrics/services/.server/MetricTracker", () => ({ createMetrics: vi.fn() }));
|
||||
vi.mock("~/modules/metrics/utils/defaultHeaders", () => ({ serverTimingHeaders: vi.fn() }));
|
||||
vi.mock("~/locale/i18next.server", () => ({ getTranslations: vi.fn() }));
|
||||
vi.mock("~/modules/helpDesk/services/Feedback.server", () => ({ default: { send: vi.fn() } }));
|
||||
vi.mock("~/stores/themePreviewStore", () => ({ useThemePreviewStore: vi.fn() }));
|
||||
vi.mock("~/utils/theme/ThemeConfig", () => ({ getThemeStyle: vi.fn(), parseThemeConfig: vi.fn() }));
|
||||
|
||||
import { appTenantDeactivatedPath, appTenantPath, appTenantPlanRequiredPath, appTenantSubscriptionRequiredPath, isAppTenantSettingsPath } from "./app.$tenant";
|
||||
|
||||
@@ -29,7 +27,7 @@ describe("app tenant route host-aware guards", () => {
|
||||
const target = appTenantPlanRequiredPath({ tenant: "acme" });
|
||||
|
||||
expect(target).toBe("/plan-required/acme");
|
||||
expect(appTenantSubscriptionRequiredPath({ tenant: "acme" })).toBe("/acme/settings/subscription?subscription_required=1");
|
||||
expect(appTenantSubscriptionRequiredPath({ tenant: "acme" })).toBe("/acme/settings/billing?subscription_required=1");
|
||||
expect(target).not.toContain("/app/acme");
|
||||
expect(target).not.toContain("/admin/settings");
|
||||
});
|
||||
@@ -40,7 +38,7 @@ describe("app tenant route host-aware guards", () => {
|
||||
|
||||
it("recognizes host-aware tenant settings paths without broad route mocks", () => {
|
||||
expect(appTenantPath({ tenant: "acme" }, "settings")).toBe("/acme/settings");
|
||||
expect(isAppTenantSettingsPath("/acme/settings/subscription", { tenant: "acme" })).toBe(true);
|
||||
expect(isAppTenantSettingsPath("/app/acme/settings/subscription", { tenant: "acme" })).toBe(false);
|
||||
expect(isAppTenantSettingsPath("/acme/settings/billing", { tenant: "acme" })).toBe(true);
|
||||
expect(isAppTenantSettingsPath("/app/acme/settings/billing", { tenant: "acme" })).toBe(false);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user