test: Fix Audio render tests and added more

This commit is contained in:
Valere
2025-10-08 14:48:40 +02:00
parent afe004c6e7
commit 427a8dd644
3 changed files with 148 additions and 100 deletions

View File

@@ -28,6 +28,7 @@ import { type MembershipManagerEventHandlerMap } from "matrix-js-sdk/lib/matrixr
import {
type LocalParticipant,
type LocalTrackPublication,
type Participant,
type RemoteParticipant,
type RemoteTrackPublication,
type Room as LivekitRoom,
@@ -392,11 +393,9 @@ export class MockRTCSession extends TypedEventEmitter<
}
}
export const mockTrack = (identity: string): TrackReference =>
export const mockTrack = (participant: Participant): TrackReference =>
({
participant: {
identity,
},
participant,
publication: {
kind: Track.Kind.Audio,
source: "mic",