From c15551c9f565f39b22240d54e769f80375294d38 Mon Sep 17 00:00:00 2001 From: Timo K Date: Tue, 26 Aug 2025 18:29:51 +0200 Subject: [PATCH] types Signed-off-by: Timo K --- src/state/CallViewModel.test.ts | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/src/state/CallViewModel.test.ts b/src/state/CallViewModel.test.ts index 2bb810bb..b774700c 100644 --- a/src/state/CallViewModel.test.ts +++ b/src/state/CallViewModel.test.ts @@ -1300,8 +1300,12 @@ describe("shouldWaitForCallPickup$", () => { r: () => { rtcSession.emit( MatrixRTCSessionEvent.DidSendCallNotification, - { lifetime: 100 } as unknown as IRTCNotificationContent, - {} as unknown as ICallNotifyContent, + { lifetime: 100 } as unknown as { + event_id: string; + } & IRTCNotificationContent, + {} as unknown as { + event_id: string; + } & ICallNotifyContent, ); }, }); @@ -1347,8 +1351,12 @@ describe("shouldWaitForCallPickup$", () => { r: () => { rtcSession.emit( MatrixRTCSessionEvent.DidSendCallNotification, - { lifetime: 50 } as unknown as IRTCNotificationContent, - {} as unknown as ICallNotifyContent, + { lifetime: 50 } as unknown as { + event_id: string; + } & IRTCNotificationContent, + {} as unknown as { + event_id: string; + } & ICallNotifyContent, ); }, }); @@ -1380,8 +1388,12 @@ describe("shouldWaitForCallPickup$", () => { r: () => { rtcSession.emit( MatrixRTCSessionEvent.DidSendCallNotification, - { lifetime: 0 } as unknown as IRTCNotificationContent, // no lifetime - {} as unknown as ICallNotifyContent, + { lifetime: 0 } as unknown as { + event_id: string; + } & IRTCNotificationContent, // no lifetime + {} as unknown as { + event_id: string; + } & ICallNotifyContent, ); }, }); @@ -1425,8 +1437,12 @@ describe("shouldWaitForCallPickup$", () => { r: () => { rtcSession.emit( MatrixRTCSessionEvent.DidSendCallNotification, - { lifetime: 30 } as unknown as IRTCNotificationContent, - {} as unknown as ICallNotifyContent, + { lifetime: 30 } as unknown as { + event_id: string; + } & IRTCNotificationContent, + {} as unknown as { + event_id: string; + } & ICallNotifyContent, ); }, });