Fix WidgetPip test having an incomplete mock (#32774)

* Fixup type

* no need to type this

* use createRef
This commit is contained in:
Will Hunt
2026-03-12 13:37:45 +00:00
committed by GitHub
parent 9fa8b34ebe
commit d38eb4fdb4
@@ -7,6 +7,7 @@
import { type MatrixClient, type Room, RoomEvent } from "matrix-js-sdk/src/matrix";
import { type MockedObject } from "jest-mock";
import { createRef } from "react";
import { mkRoom, stubClient } from "../../test-utils";
import { WidgetPipViewModel } from "../../../src/viewmodels/room/WidgetPipViewModel";
@@ -50,6 +51,8 @@ describe("WidgetPipViewModel", () => {
vm = new WidgetPipViewModel({
room,
widgetId,
onStartMoving: () => {},
movePersistedElement: createRef(),
});
});