mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-29 21:15:19 +00:00
SPA gate should come from EC config not a URL param
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user