From 81804b82a2af75553b55e4253a011de0711fc039 Mon Sep 17 00:00:00 2001 From: Andy Balaam Date: Wed, 23 Aug 2023 10:51:27 +0100 Subject: [PATCH] Avoid importing mkEvent from matrix-js-sdk/spec since that is not in the package (#11450) (cherry picked from commit e79b03a2df744be8e23b758954cf2d863093d9af) --- test/components/views/dialogs/RoomSettingsDialog-test.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/components/views/dialogs/RoomSettingsDialog-test.tsx b/test/components/views/dialogs/RoomSettingsDialog-test.tsx index 714d2527d6..9a5f9b6745 100644 --- a/test/components/views/dialogs/RoomSettingsDialog-test.tsx +++ b/test/components/views/dialogs/RoomSettingsDialog-test.tsx @@ -16,7 +16,6 @@ limitations under the License. import React from "react"; import { fireEvent, render, screen } from "@testing-library/react"; -import { mkEvent } from "matrix-js-sdk/spec/test-utils/test-utils"; import { EventTimeline, EventType, @@ -133,7 +132,7 @@ describe("", () => { jest.spyOn(room, "getJoinRule").mockReturnValue(JoinRule.Invite); mockClient.emit( RoomStateEvent.Events, - new MatrixEvent(mkEvent({ content: {}, type: EventType.RoomJoinRules })), + new MatrixEvent({ content: {}, type: EventType.RoomJoinRules }), room.getLiveTimeline().getState(EventTimeline.FORWARDS)!, null, );