@webex/plugin-meetings 1.156.4 → 1.158.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.
Files changed (35) hide show
  1. package/README.md +3 -3
  2. package/browsers.js +1 -1
  3. package/dist/index.js +1 -2
  4. package/dist/index.js.map +1 -1
  5. package/dist/meeting/index.js +12 -1
  6. package/dist/meeting/index.js.map +1 -1
  7. package/dist/meeting-info/meeting-info-v2.js +12 -3
  8. package/dist/meeting-info/meeting-info-v2.js.map +1 -1
  9. package/dist/meeting-info/utilv2.js +44 -0
  10. package/dist/meeting-info/utilv2.js.map +1 -1
  11. package/dist/meetings/index.js +2 -2
  12. package/dist/meetings/index.js.map +1 -1
  13. package/dist/metrics/index.js +8 -1
  14. package/dist/metrics/index.js.map +1 -1
  15. package/package.json +5 -5
  16. package/src/index.js +0 -1
  17. package/src/meeting/index.js +13 -0
  18. package/src/meeting-info/meeting-info-v2.js +8 -2
  19. package/src/meeting-info/utilv2.js +39 -0
  20. package/src/meetings/index.js +1 -2
  21. package/src/metrics/index.js +9 -1
  22. package/test/{unit/spec/transcription/index.js → integration/spec/transcription.js} +1 -1
  23. package/test/unit/spec/common/browser-detection.js +1 -0
  24. package/test/unit/spec/locus-info/index.js +1 -1
  25. package/test/unit/spec/meeting/index.js +49 -3
  26. package/test/unit/spec/meeting-info/utilv2.js +72 -0
  27. package/test/unit/spec/meetings/index.js +266 -74
  28. package/test/unit/spec/members/index.js +1 -0
  29. package/test/unit/spec/metrics/index.js +7 -26
  30. package/test/unit/spec/networkQualityMonitor/index.js +1 -0
  31. package/test/unit/spec/peerconnection-manager/index.js +11 -1
  32. package/test/unit/spec/personal-meeting-room/personal-meeting-room.js +1 -0
  33. package/test/unit/spec/reconnection-manager/index.js +1 -0
  34. package/test/unit/spec/roap/util.js +1 -0
  35. package/test/unit/spec/stats-analyzer/index.js +1 -0
@@ -1,3 +1,4 @@
1
+ import 'jsdom-global/register';
1
2
  import chai from 'chai';
2
3
  import chaiAsPromised from 'chai-as-promised';
3
4
  import sinon from 'sinon';
@@ -1,4 +1,4 @@
1
-
1
+ import 'jsdom-global/register';
2
2
  import {assert} from '@webex/test-helper-chai';
3
3
  import sinon from 'sinon';
4
4
  import PeerConnectionManager from '@webex/plugin-meetings/src/peer-connection-manager/index';
@@ -19,6 +19,16 @@ describe('Peerconnection Manager', () => {
19
19
  onicecandidateerror: null,
20
20
  localDescription: {sdp}
21
21
  };
22
+
23
+ Object.defineProperty(global.window, 'RTCSessionDescription', {
24
+ writable: true,
25
+ value: class {
26
+ constructor(options) {
27
+ this.type = options.type;
28
+ this.sdp = options.sdp;
29
+ }
30
+ }
31
+ });
22
32
  });
23
33
  describe('setRemoteSessionDetails', () => {
24
34
  it('change the start bitrate on remoteSDP and remove extmap', async () => {
@@ -2,6 +2,7 @@
2
2
  * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
3
3
  */
4
4
 
5
+ import 'jsdom-global/register';
5
6
  import {assert} from '@webex/test-helper-chai';
6
7
  import sinon from 'sinon';
7
8
  import {
@@ -1,3 +1,4 @@
1
+ import 'jsdom-global/register';
1
2
  import chai from 'chai';
2
3
  import chaiAsPromised from 'chai-as-promised';
3
4
  import sinon from 'sinon';
@@ -1,3 +1,4 @@
1
+ import 'jsdom-global/register';
1
2
  import {assert} from '@webex/test-helper-chai';
2
3
  import RoapUtil from '@webex/plugin-meetings/src/roap/util';
3
4
  import PeerConnectionManager from '@webex/plugin-meetings/src/peer-connection-manager/index.js';
@@ -1,3 +1,4 @@
1
+ import 'jsdom-global/register';
1
2
  import chai from 'chai';
2
3
  import chaiAsPromised from 'chai-as-promised';
3
4
  import sinon from 'sinon';