@webex/calling 3.0.1-next.2 → 3.0.1-next.21

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.
Files changed (38) hide show
  1. package/dist/CallHistory/CallHistory.js +132 -18
  2. package/dist/CallHistory/CallHistory.js.map +1 -1
  3. package/dist/CallHistory/CallHistory.test.js +214 -4
  4. package/dist/CallHistory/CallHistory.test.js.map +1 -1
  5. package/dist/CallHistory/callHistoryFixtures.js +38 -1
  6. package/dist/CallHistory/callHistoryFixtures.js.map +1 -1
  7. package/dist/CallHistory/constants.js +5 -1
  8. package/dist/CallHistory/constants.js.map +1 -1
  9. package/dist/CallHistory/types.js.map +1 -1
  10. package/dist/CallingClient/calling/call.js +7 -6
  11. package/dist/CallingClient/calling/call.js.map +1 -1
  12. package/dist/CallingClient/calling/call.test.js +4 -6
  13. package/dist/CallingClient/calling/call.test.js.map +1 -1
  14. package/dist/Events/types.js +2 -0
  15. package/dist/Events/types.js.map +1 -1
  16. package/dist/common/Utils.js.map +1 -1
  17. package/dist/module/CallHistory/CallHistory.js +51 -1
  18. package/dist/module/CallHistory/callHistoryFixtures.js +38 -1
  19. package/dist/module/CallHistory/constants.js +4 -0
  20. package/dist/module/CallingClient/calling/call.js +7 -6
  21. package/dist/module/Events/types.js +2 -0
  22. package/dist/types/CallHistory/CallHistory.d.ts +4 -2
  23. package/dist/types/CallHistory/CallHistory.d.ts.map +1 -1
  24. package/dist/types/CallHistory/callHistoryFixtures.d.ts +19 -1
  25. package/dist/types/CallHistory/callHistoryFixtures.d.ts.map +1 -1
  26. package/dist/types/CallHistory/constants.d.ts +4 -0
  27. package/dist/types/CallHistory/constants.d.ts.map +1 -1
  28. package/dist/types/CallHistory/types.d.ts +10 -1
  29. package/dist/types/CallHistory/types.d.ts.map +1 -1
  30. package/dist/types/CallingClient/calling/call.d.ts.map +1 -1
  31. package/dist/types/Contacts/ContactsClient.d.ts +1 -1
  32. package/dist/types/Events/types.d.ts +29 -2
  33. package/dist/types/Events/types.d.ts.map +1 -1
  34. package/dist/types/Voicemail/UcmBackendConnector.d.ts +1 -1
  35. package/dist/types/Voicemail/WxCallBackendConnector.d.ts +1 -1
  36. package/dist/types/common/Utils.d.ts +2 -2
  37. package/dist/types/common/Utils.d.ts.map +1 -1
  38. package/package.json +3 -3
@@ -211,10 +211,8 @@ describe('Call Tests', function () {
211
211
  });
212
212
  callManager = (0, _callManager.getCallManager)(webex, defaultServiceIndicator);
213
213
  mockStream = {
214
- outputStream: {
215
- getAudioTracks: jest.fn().mockReturnValue([mockTrack])
216
- },
217
- on: jest.fn()
214
+ on: jest.fn(),
215
+ setUserMuted: jest.fn()
218
216
  };
219
217
  localAudioStream = mockStream;
220
218
  call = callManager.createCall(dest, _types3.CallDirection.OUTBOUND, deviceId, mockLineId);
@@ -223,9 +221,9 @@ describe('Call Tests', function () {
223
221
  expect((0, _keys.default)(callManager.getActiveCalls()).length).toBe(1);
224
222
  call.mute(localAudioStream);
225
223
  expect(call.isMuted()).toEqual(true);
226
- expect(mockTrack.enabled).toEqual(false);
224
+ expect(mockStream.setUserMuted).toBeCalledOnceWith(true);
227
225
  call.mute(localAudioStream);
228
- expect(mockTrack.enabled).toEqual(true);
226
+ expect(mockStream.setUserMuted).toBeCalledWith(false);
229
227
  expect(call.isMuted()).toEqual(false);
230
228
  call.end();
231
229
  _context2.next = 16;