Refresh HiveGrid Cloud reference snapshot

This commit is contained in:
david committed 2026-08-03 15:31:14 +02:00
1 parent 5e99e14772
commit 7f88026f79
5955 files changed
+1177325 -188362

No files matched your search

@@ -10,10 +10,9 @@ import { resolveRepoPath } from "~/utils/testing/repoPaths";
const appRoot = resolveRepoPath("apps/web/app");
const mutationRoutes = [
"routes/app.$tenant/settings.integrations.calendar._index.tsx",
"routes/app.$tenant/settings.integrations.calendar.$id.tsx",
];
const CALENDAR_DETAIL_ROUTE = "routes/app.$tenant/settings/integrations/calendar.$id.tsx";
const mutationRoutes = ["routes/app.$tenant/settings/integrations/calendar._index.tsx", CALENDAR_DETAIL_ROUTE];
describe("calendar route authorization boundary", () => {
test("guards permission + CSRF before parsing the form body", () => {
@@ -33,7 +32,7 @@ describe("calendar route authorization boundary", () => {
});
test("detail route owner-checks the connection before mutating", () => {
const source = fs.readFileSync(path.join(appRoot, "routes/app.$tenant/settings.integrations.calendar.$id.tsx"), "utf8");
const source = fs.readFileSync(path.join(appRoot, CALENDAR_DETAIL_ROUTE), "utf8");
const ownerAt = source.indexOf("requireConnectionOwner(ctx, connection.userId)");
const formDataAt = source.indexOf("await request.formData()");
expect(ownerAt).toBeGreaterThanOrEqual(0);