temp
This commit is contained in:
@@ -429,7 +429,6 @@ describe("LocalMembership", () => {
|
|||||||
await publishResolver.promise;
|
await publishResolver.promise;
|
||||||
publishing$.next(true);
|
publishing$.next(true);
|
||||||
}),
|
}),
|
||||||
|
|
||||||
publishing$,
|
publishing$,
|
||||||
};
|
};
|
||||||
publishers.push(p as unknown as Publisher);
|
publishers.push(p as unknown as Publisher);
|
||||||
|
|||||||
@@ -208,6 +208,13 @@ describe("Publisher", () => {
|
|||||||
expect(createTracksSpy).not.toHaveBeenCalled();
|
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 () => {
|
it("Should minimize permission request by querying create at once", async () => {
|
||||||
const enableCameraAndMicrophoneSpy = vi.spyOn(
|
const enableCameraAndMicrophoneSpy = vi.spyOn(
|
||||||
localParticipant,
|
localParticipant,
|
||||||
|
|||||||
Reference in New Issue
Block a user