fixup MediaView tests
This commit is contained in:
@@ -19,11 +19,7 @@ import { type ComponentProps } from "react";
|
|||||||
|
|
||||||
import { MediaView } from "./MediaView";
|
import { MediaView } from "./MediaView";
|
||||||
import { EncryptionStatus } from "../state/MediaViewModel";
|
import { EncryptionStatus } from "../state/MediaViewModel";
|
||||||
import {
|
import { mockLocalParticipant } from "../utils/test";
|
||||||
mockLocalParticipant,
|
|
||||||
mockMatrixRoomMember,
|
|
||||||
mockRtcMembership,
|
|
||||||
} from "../utils/test";
|
|
||||||
|
|
||||||
describe("MediaView", () => {
|
describe("MediaView", () => {
|
||||||
const participant = mockLocalParticipant({});
|
const participant = mockLocalParticipant({});
|
||||||
@@ -49,10 +45,7 @@ describe("MediaView", () => {
|
|||||||
mirror: false,
|
mirror: false,
|
||||||
unencryptedWarning: false,
|
unencryptedWarning: false,
|
||||||
video: trackReference,
|
video: trackReference,
|
||||||
member: mockMatrixRoomMember(
|
member: undefined,
|
||||||
mockRtcMembership("@alice:example.org", "CCCC"),
|
|
||||||
{ name: "some name" },
|
|
||||||
),
|
|
||||||
localParticipant: false,
|
localParticipant: false,
|
||||||
focusable: true,
|
focusable: true,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user