@webex/calling 3.1.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,26 +37,6 @@ var mockMediaSDK = MediaSDK;
37
37
  var defaultServiceIndicator = _types3.ServiceIndicator.CALLING;
38
38
  var activeUrl = 'FakeActiveUrl';
39
39
  var mockLineId = 'e4e8ee2a-a154-4e52-8f11-ef4cde2dce72';
40
-
41
- // class MockMediaStream {
42
- // private track;
43
-
44
- // constructor(track: any) {
45
- // this.track = track;
46
- // }
47
- // }
48
-
49
- // globalThis.MediaStream = MockMediaStream;
50
-
51
- // // eslint-disable-next-line @typescript-eslint/no-unused-vars
52
- // jest.spyOn(window, 'MediaStream').mockImplementation((tracks: MediaStreamTrack[]) => {
53
- // return {} as MediaStream;
54
- // });
55
-
56
- // // Object.defineProperty(window, 'MediaStream', {
57
- // // writable: true,
58
- // // });
59
-
60
40
  describe('Call Tests', function () {
61
41
  var deviceId = '55dfb53f-bed2-36da-8e85-cee7f02aa68e';
62
42
  var dest = {
@@ -487,10 +467,12 @@ describe('Call Tests', function () {
487
467
  return (0, _Utils.waitForMsecs)(50);
488
468
  case 35:
489
469
  /* Checks for switching off the listeners on call disconnect */
470
+ expect(offStreamSpy).toBeCalledTimes(2);
471
+ expect(offStreamSpy).toBeCalledWith(MediaSDK.LocalStreamEventNames.OutputTrackChange, expect.any(Function));
490
472
  expect(offStreamSpy).toBeCalledWith(MediaSDK.LocalStreamEventNames.EffectAdded, expect.any(Function));
491
473
  expect(offEffectSpy).toBeCalledWith(_webMediaEffects.EffectEvent.Enabled, expect.any(Function));
492
474
  expect(offEffectSpy).toBeCalledWith(_webMediaEffects.EffectEvent.Disabled, expect.any(Function));
493
- case 38:
475
+ case 40:
494
476
  case "end":
495
477
  return _context9.stop();
496
478
  }