Update hivegrid-cloud reference to latest main

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
davidandClaude Fable 5 committed 2026-07-08 16:15:37 +02:00
1 parent e98d38e716
commit 7b21524c86
3781 files changed
+373484 -225607

No files matched your search

@@ -0,0 +1,29 @@
import { describe, expect, it } from "vitest";
import { loader } from "./admin.login";
function expectRedirect(call: () => Response): Response {
try {
call();
} catch (error) {
if (typeof error === "object" && error !== null && "status" in error && "headers" in error) {
return error as Response;
}
throw error;
}
throw new Error("Expected redirect response");
}
describe("admin login alias route", () => {
it("redirects legacy /admin/login URLs to the canonical login route", async () => {
const response = expectRedirect(() =>
loader({
request: new Request("https://admin.example.test/admin/login?error=sso_state_invalid"),
params: {},
context: {},
})
);
expect(response.status).toBe(302);
expect(response.headers.get("Location")).toBe("/login?error=sso_state_invalid");
});
});