cleanup based on new js-sdk impl
This commit is contained in:
@@ -23,7 +23,6 @@ import {
|
||||
|
||||
import {
|
||||
exampleTransport,
|
||||
mockComputeLivekitParticipantIdentity$,
|
||||
mockMatrixRoomMember,
|
||||
mockRtcMembership,
|
||||
} from "../utils/test";
|
||||
@@ -48,13 +47,6 @@ vitest.mock("../rtcSessionHelpers", async (importOriginal) => ({
|
||||
...(await importOriginal()),
|
||||
makeTransport: (): [LivekitTransport] => [exampleTransport],
|
||||
}));
|
||||
vitest.mock(
|
||||
import("../state/CallViewModel/remoteMembers/LivekitParticipantIdentity.ts"),
|
||||
async (importOriginal) => ({
|
||||
...(await importOriginal()),
|
||||
computeLivekitParticipantIdentity$: mockComputeLivekitParticipantIdentity$,
|
||||
}),
|
||||
);
|
||||
|
||||
afterEach(() => {
|
||||
vitest.clearAllMocks();
|
||||
|
||||
@@ -23,7 +23,6 @@ import { TooltipProvider } from "@vector-im/compound-web";
|
||||
import { RoomContext, useLocalParticipant } from "@livekit/components-react";
|
||||
|
||||
import {
|
||||
mockComputeLivekitParticipantIdentity$,
|
||||
mockLivekitRoom,
|
||||
mockLocalParticipant,
|
||||
mockMatrixRoom,
|
||||
@@ -62,13 +61,6 @@ vi.mock("../livekit/MatrixAudioRenderer");
|
||||
vi.mock("react-use-measure", () => ({
|
||||
default: (): [() => void, object] => [(): void => {}, {}],
|
||||
}));
|
||||
vi.mock(
|
||||
import("../state/CallViewModel/remoteMembers/LivekitParticipantIdentity.ts"),
|
||||
async (importOriginal) => ({
|
||||
...(await importOriginal()),
|
||||
computeLivekitParticipantIdentity$: mockComputeLivekitParticipantIdentity$,
|
||||
}),
|
||||
);
|
||||
|
||||
const localRtcMember = mockRtcMembership("@carol:example.org", "CCCC");
|
||||
const localParticipant = mockLocalParticipant({
|
||||
|
||||
Reference in New Issue
Block a user