This commit is contained in:
Timo K
2026-01-16 14:07:56 +01:00
parent 83df152608
commit a99a413b88
2 changed files with 7 additions and 1 deletions

View File

@@ -429,7 +429,6 @@ describe("LocalMembership", () => {
await publishResolver.promise;
publishing$.next(true);
}),
publishing$,
};
publishers.push(p as unknown as Publisher);

View File

@@ -208,6 +208,13 @@ describe("Publisher", () => {
expect(createTracksSpy).not.toHaveBeenCalled();
});
it("should unsetHandler and stop tracks on destroy", async () => {
await publisher.destroy();
expect(publisher.stopTracks).toHaveBeenCalled();
expect( this.muteStates.audio.unsetHandler();
this.muteStates.video.unsetHandler();).toHaveBeenCalled();
});
it("Should minimize permission request by querying create at once", async () => {
const enableCameraAndMicrophoneSpy = vi.spyOn(
localParticipant,