From 0f1012278a37d91c04bbda6ffa8c45cf80188977 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 26 Oct 2022 12:01:53 +0100 Subject: [PATCH] Fix types --- spec/unit/embedded.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/unit/embedded.spec.ts b/spec/unit/embedded.spec.ts index 3a144215c..436909be7 100644 --- a/spec/unit/embedded.spec.ts +++ b/spec/unit/embedded.spec.ts @@ -28,6 +28,7 @@ import { WidgetApiToWidgetAction, MatrixCapabilities, ITurnServer, + IRoomEvent, } from "matrix-widget-api"; import { createRoomWidgetClient, MsgType } from "../../src/matrix"; @@ -184,7 +185,7 @@ describe("RoomWidgetClient", () => { it("backfills", async () => { widgetApi.readStateEvents.mockImplementation(async (eventType, limit, stateKey) => eventType === "org.example.foo" && (limit ?? Infinity) > 0 && stateKey === "bar" - ? [event] + ? [event as IRoomEvent] : [], );