From c91ee8872312db1a1d1b66c835eb2c20507ba953 Mon Sep 17 00:00:00 2001 From: Timo Date: Tue, 1 Jul 2025 10:27:06 +0200 Subject: [PATCH] fix tests that now require the url to be a widget url --- src/UrlParams.test.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/UrlParams.test.ts b/src/UrlParams.test.ts index e16bd71b..f75b6636 100644 --- a/src/UrlParams.test.ts +++ b/src/UrlParams.test.ts @@ -220,15 +220,17 @@ describe("UrlParams", () => { }); it("accepts start_call", () => { - expect(getUrlParams("?intent=start_call").intent).toBe( - UserIntent.StartNewCall, - ); + expect( + getUrlParams("?intent=start_call&widgetId=1234&parentUrl=parent.org") + .intent, + ).toBe(UserIntent.StartNewCall); }); it("accepts join_existing", () => { - expect(getUrlParams("?intent=join_existing").intent).toBe( - UserIntent.JoinExistingCall, - ); + expect( + getUrlParams("?intent=join_existing&widgetId=1234&parentUrl=parent.org") + .intent, + ).toBe(UserIntent.JoinExistingCall); }); });