Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 81804b8

Browse files
andybalaamgithub-actions[bot]
authored andcommitted
Avoid importing mkEvent from matrix-js-sdk/spec since that is not in the package (#11450)
(cherry picked from commit e79b03a)
1 parent d4f6813 commit 81804b8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/components/views/dialogs/RoomSettingsDialog-test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ limitations under the License.
1616

1717
import React from "react";
1818
import { fireEvent, render, screen } from "@testing-library/react";
19-
import { mkEvent } from "matrix-js-sdk/spec/test-utils/test-utils";
2019
import {
2120
EventTimeline,
2221
EventType,
@@ -133,7 +132,7 @@ describe("<RoomSettingsDialog />", () => {
133132
jest.spyOn(room, "getJoinRule").mockReturnValue(JoinRule.Invite);
134133
mockClient.emit(
135134
RoomStateEvent.Events,
136-
new MatrixEvent(mkEvent({ content: {}, type: EventType.RoomJoinRules })),
135+
new MatrixEvent({ content: {}, type: EventType.RoomJoinRules }),
137136
room.getLiveTimeline().getState(EventTimeline.FORWARDS)!,
138137
null,
139138
);

0 commit comments

Comments
 (0)