diff --git a/src/media/local-stream.spec.ts b/src/media/local-stream.spec.ts index d9e432e..121cd24 100644 --- a/src/media/local-stream.spec.ts +++ b/src/media/local-stream.spec.ts @@ -199,12 +199,11 @@ describe('LocalStream', () => { }); it('should return an object with inputStream, outputStream and effects properties', () => { - expect.assertions(7); + expect.assertions(6); const jsonLocalStream = localStream.toJSON(); expect(jsonLocalStream).toHaveProperty('muted'); - expect(jsonLocalStream).toHaveProperty('enabled'); expect(jsonLocalStream).toHaveProperty('label'); expect(jsonLocalStream).toHaveProperty('readyState'); expect(jsonLocalStream).toHaveProperty('inputStream'); diff --git a/src/media/local-stream.ts b/src/media/local-stream.ts index d7bb9c4..a9b25fd 100644 --- a/src/media/local-stream.ts +++ b/src/media/local-stream.ts @@ -292,12 +292,13 @@ abstract class _LocalStream extends Stream { toJSON() { return { muted: this.muted, - enabled: this.inputTrack.enabled, label: this.label, readyState: this.readyState, inputStream: { active: this.inputStream.active, id: this.inputStream.id, + enabled: this.inputTrack.enabled, + muted: this.inputTrack.muted, }, outputStream: { active: this.outputStream.active,