mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 06:58:25 +00:00
Fix WidgetPip test having an incomplete mock (#32774)
* Fixup type * no need to type this * use createRef
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
import { type MatrixClient, type Room, RoomEvent } from "matrix-js-sdk/src/matrix";
|
import { type MatrixClient, type Room, RoomEvent } from "matrix-js-sdk/src/matrix";
|
||||||
import { type MockedObject } from "jest-mock";
|
import { type MockedObject } from "jest-mock";
|
||||||
|
import { createRef } from "react";
|
||||||
|
|
||||||
import { mkRoom, stubClient } from "../../test-utils";
|
import { mkRoom, stubClient } from "../../test-utils";
|
||||||
import { WidgetPipViewModel } from "../../../src/viewmodels/room/WidgetPipViewModel";
|
import { WidgetPipViewModel } from "../../../src/viewmodels/room/WidgetPipViewModel";
|
||||||
@@ -50,6 +51,8 @@ describe("WidgetPipViewModel", () => {
|
|||||||
vm = new WidgetPipViewModel({
|
vm = new WidgetPipViewModel({
|
||||||
room,
|
room,
|
||||||
widgetId,
|
widgetId,
|
||||||
|
onStartMoving: () => {},
|
||||||
|
movePersistedElement: createRef(),
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user