This commit is contained in:
Half-Shot
2024-12-16 15:29:41 +00:00
parent 3924429689
commit 5c0b4d4109
4 changed files with 10 additions and 7 deletions

View File

@@ -47,7 +47,7 @@ import {
type ECConnectionState,
} from "../livekit/useECConnectionState";
import { E2eeType } from "../e2ee/e2eeType";
import { RaisedHandInfo } from "../reactions";
import type { RaisedHandInfo } from "../reactions";
vi.mock("@livekit/components-core");

View File

@@ -16,7 +16,7 @@ import { GridTile } from "./GridTile";
import { mockRtcMembership, withRemoteMedia } from "../utils/test";
import { GridTileViewModel } from "../state/TileViewModel";
import { ReactionsSenderProvider } from "../reactions/useReactionsSender";
import { CallViewModel } from "../state/CallViewModel";
import type { CallViewModel } from "../state/CallViewModel";
global.IntersectionObserver = class MockIntersectionObserver {
public observe(): void {}

View File

@@ -8,7 +8,10 @@ Please see LICENSE in the repository root for full details.
import { ConnectionState } from "livekit-client";
import { type MatrixClient } from "matrix-js-sdk/src/client";
import { type RoomMember } from "matrix-js-sdk/src/matrix";
import { type CallMembership, type MatrixRTCSession } from "matrix-js-sdk/src/matrixrtc";
import {
type CallMembership,
type MatrixRTCSession,
} from "matrix-js-sdk/src/matrixrtc";
import { BehaviorSubject, of } from "rxjs";
import { vitest } from "vitest";
import { type RelationsContainer } from "matrix-js-sdk/src/models/relations-container";

View File

@@ -205,8 +205,8 @@ export async function withLocalMedia(
kind: E2eeType.PER_PARTICIPANT,
},
mockLivekitRoom({ localParticipant }),
of(undefined),
of(undefined),
of(null),
of(null),
);
try {
await continuation(vm);
@@ -243,8 +243,8 @@ export async function withRemoteMedia(
kind: E2eeType.PER_PARTICIPANT,
},
mockLivekitRoom({}, { remoteParticipants: of([remoteParticipant]) }),
of(undefined),
of(undefined),
of(null),
of(null),
);
try {
await continuation(vm);