fix tests that now require the url to be a widget url

This commit is contained in:
Timo
2025-07-01 10:27:06 +02:00
parent 2496b1f03d
commit c91ee88723

View File

@@ -220,15 +220,17 @@ describe("UrlParams", () => {
}); });
it("accepts start_call", () => { it("accepts start_call", () => {
expect(getUrlParams("?intent=start_call").intent).toBe( expect(
UserIntent.StartNewCall, getUrlParams("?intent=start_call&widgetId=1234&parentUrl=parent.org")
); .intent,
).toBe(UserIntent.StartNewCall);
}); });
it("accepts join_existing", () => { it("accepts join_existing", () => {
expect(getUrlParams("?intent=join_existing").intent).toBe( expect(
UserIntent.JoinExistingCall, getUrlParams("?intent=join_existing&widgetId=1234&parentUrl=parent.org")
); .intent,
).toBe(UserIntent.JoinExistingCall);
}); });
}); });