Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
+2
-2
@@ -3,7 +3,7 @@ import { describe, expect, it, vi } from "vitest";
|
||||
vi.mock("~/components/app/AppLayout", () => ({ default: ({ children }: { children: React.ReactNode }) => children }));
|
||||
vi.mock("~/utils/data/useAppData", () => ({ useAppData: vi.fn() }));
|
||||
vi.mock("~/utils/data/.server/appData", () => ({ loadAppData: vi.fn() }));
|
||||
vi.mock("@toolctrl/db/auth-boundary.server", () => ({
|
||||
vi.mock("@hivegrid/db/auth-boundary.server", () => ({
|
||||
getAuthUserWithoutPasswordById: vi.fn(),
|
||||
getTenantMembershipByIds: vi.fn(),
|
||||
updateAuthUserDefaultTenantId: vi.fn(),
|
||||
@@ -29,7 +29,7 @@ describe("app tenant route host-aware guards", () => {
|
||||
const target = appTenantPlanRequiredPath({ tenant: "acme" });
|
||||
|
||||
expect(target).toBe("/plan-required/acme");
|
||||
expect(appTenantSubscriptionRequiredPath({ tenant: "acme" })).toBe("/subscribe/acme?error=subscription_required");
|
||||
expect(appTenantSubscriptionRequiredPath({ tenant: "acme" })).toBe("/acme/settings/subscription?subscription_required=1");
|
||||
expect(target).not.toContain("/app/acme");
|
||||
expect(target).not.toContain("/admin/settings");
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user