SPA gate should come from EC config not a URL param

This commit is contained in:
David Langley
2026-07-10 19:21:09 +01:00
parent 23a9e0c85e
commit a75eeaeda1
7 changed files with 56 additions and 10 deletions

View File

@@ -123,6 +123,28 @@ describe("UrlParams", () => {
});
});
describe("enableClientWellKnownLookups", () => {
it("is undefined when not set (so the config value applies)", () => {
expect(
computeUrlParams().enableClientWellKnownLookups,
).toBeUndefined();
});
it("is false when set to false", () => {
expect(
computeUrlParams("?enableClientWellKnownLookups=false")
.enableClientWellKnownLookups,
).toBe(false);
});
it("is true when set to true", () => {
expect(
computeUrlParams("?enableClientWellKnownLookups=true")
.enableClientWellKnownLookups,
).toBe(true);
});
});
describe("returnToLobby", () => {
it("is false in SPA mode", () => {
expect(computeUrlParams("?returnToLobby=true").returnToLobby).toBe(false);