@webex/calling 3.12.0-next.85 → 3.12.0-next.86

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.
@@ -814,6 +814,24 @@ describe('Call Tests', function () {
814
814
  }
815
815
  }, _callee1);
816
816
  })));
817
+ it('does not register effect listeners when the added effect cannot be resolved', function () {
818
+ var mockStream = {
819
+ outputStream: {
820
+ getAudioTracks: jest.fn().mockReturnValue([mockTrack])
821
+ },
822
+ on: jest.fn(),
823
+ getEffectByKind: jest.fn().mockReturnValue(undefined)
824
+ };
825
+ var localAudioStream = mockStream;
826
+ var onStreamSpy = jest.spyOn(localAudioStream, 'on');
827
+ var onEffectSpy = jest.spyOn(mockEffect, 'on');
828
+ var call = (0, _call.createCall)(activeUrl, webex, _types3.CallDirection.OUTBOUND, deviceId, mockLineId, deleteCallFromCollection, defaultServiceIndicator, dest);
829
+ call.dial(localAudioStream);
830
+ expect(function () {
831
+ return onStreamSpy.mock.calls[1][1](undefined);
832
+ }).not.toThrow();
833
+ expect(onEffectSpy).not.toHaveBeenCalled();
834
+ });
817
835
  it('answer fails if localAudioTrack is empty', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee10() {
818
836
  var mockStream, localAudioStream, warnSpy, call;
819
837
  return _regenerator.default.wrap(function (_context10) {