Add camera switching to the media view model

This commit is contained in:
Robin
2025-06-12 19:16:37 -04:00
parent 7c5336fc40
commit 0c194617a3
5 changed files with 187 additions and 19 deletions

View File

@@ -13,6 +13,8 @@ import { of } from "rxjs";
import { SpotlightTile } from "./SpotlightTile";
import {
mockLocalParticipant,
mockMediaDevices,
mockRtcMembership,
withLocalMedia,
withRemoteMedia,
@@ -39,6 +41,8 @@ test("SpotlightTile is accessible", async () => {
rawDisplayName: "Bob",
getMxcAvatarUrl: () => "mxc://dlskf",
},
mockLocalParticipant({}),
mockMediaDevices({}),
async (vm2) => {
const user = userEvent.setup();
const toggleExpanded = vi.fn();