Avoid importing mkEvent from matrix-js-sdk/spec since that is not in the package (#11450)

(cherry picked from commit e79b03a2df)
pull/28788/head^2
Andy Balaam 2023-08-23 10:51:27 +01:00 committed by github-actions[bot]
parent d4f681375d
commit 81804b82a2
1 changed files with 1 additions and 2 deletions

View File

@ -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("<RoomSettingsDialog />", () => {
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,
);