style(ui): format prefix-aware login URL regression test

This commit is contained in:
Martin Collado 2026-10-08 10:29:21 +02:00
parent 8719dfd922
commit eb9e706206
No known key found for this signature in database
GPG key ID: 566182E0C35B0EC8

View file

@ -108,9 +108,7 @@ describe("returnUrlUtils", () => {
it("keeps a nested root in same-origin SSO return URLs", () => {
setServerRootPath("/services/llm/");
expect(getLoginUrl()).toBe("/services/llm/ui/login/");
expect(getLoginUrl("https://platform.example.com")).toBe(
"https://platform.example.com/services/llm/ui/login/",
);
expect(getLoginUrl("https://platform.example.com")).toBe("https://platform.example.com/services/llm/ui/login/");
expect(getLoginUrl("https://platform.example.com/services/llm/")).toBe(
"https://platform.example.com/services/llm/ui/login/",
);