@webex/media-helpers 3.3.1-next.9 → 3.4.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.
package/package.json
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"deploy:npm": "yarn npm publish"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@webex/internal-media-core": "2.
|
|
25
|
+
"@webex/internal-media-core": "2.10.0",
|
|
26
26
|
"@webex/ts-events": "^1.1.0",
|
|
27
27
|
"@webex/web-media-effects": "2.18.0"
|
|
28
28
|
},
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"@webex/eslint-config-legacy": "0.0.0",
|
|
39
39
|
"@webex/jest-config-legacy": "0.0.0",
|
|
40
40
|
"@webex/legacy-tools": "0.0.0",
|
|
41
|
-
"@webex/test-helper-chai": "3.
|
|
42
|
-
"@webex/test-helper-mock-webex": "3.
|
|
41
|
+
"@webex/test-helper-chai": "3.4.0",
|
|
42
|
+
"@webex/test-helper-mock-webex": "3.4.0",
|
|
43
43
|
"eslint": "^8.24.0",
|
|
44
44
|
"jsdom-global": "3.0.2",
|
|
45
45
|
"sinon": "^9.2.4"
|
|
46
46
|
},
|
|
47
|
-
"version": "3.
|
|
47
|
+
"version": "3.4.0"
|
|
48
48
|
}
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
createDisplayStream,
|
|
14
14
|
createDisplayStreamWithAudio,
|
|
15
15
|
} from '@webex/media-helpers';
|
|
16
|
-
import * as
|
|
16
|
+
import * as InternalMediaCoreModule from '@webex/internal-media-core';
|
|
17
17
|
|
|
18
18
|
describe('media-helpers', () => {
|
|
19
19
|
describe('webrtc-core', () => {
|
|
@@ -120,7 +120,7 @@ describe('media-helpers', () => {
|
|
|
120
120
|
it('checks creating tracks', async () => {
|
|
121
121
|
const constraints = {deviceId: 'abc'};
|
|
122
122
|
|
|
123
|
-
const spy = sinon.stub(
|
|
123
|
+
const spy = sinon.stub(InternalMediaCoreModule, spyFn).returns('something');
|
|
124
124
|
const result = await createFn(constraints);
|
|
125
125
|
|
|
126
126
|
assert.equal(result, 'something');
|
|
@@ -132,7 +132,7 @@ describe('media-helpers', () => {
|
|
|
132
132
|
|
|
133
133
|
describe('createDisplayStream', () => {
|
|
134
134
|
it('checks createDisplayStream', async () => {
|
|
135
|
-
const spy = sinon.stub(
|
|
135
|
+
const spy = sinon.stub(InternalMediaCoreModule, 'createDisplayStream').returns('something');
|
|
136
136
|
const result = await createDisplayStream();
|
|
137
137
|
assert.equal(result, 'something');
|
|
138
138
|
assert.calledOnceWithExactly(spy, LocalDisplayStream);
|
|
@@ -141,7 +141,7 @@ describe('media-helpers', () => {
|
|
|
141
141
|
|
|
142
142
|
describe('createDisplayStreamWithAudio', () => {
|
|
143
143
|
it('checks createDisplayStreamWithAudio', async () => {
|
|
144
|
-
const spy = sinon.stub(
|
|
144
|
+
const spy = sinon.stub(InternalMediaCoreModule, 'createDisplayStreamWithAudio').returns('something');
|
|
145
145
|
const result = await createDisplayStreamWithAudio();
|
|
146
146
|
assert.equal(result, 'something');
|
|
147
147
|
assert.calledOnceWithExactly(spy, LocalDisplayStream, LocalSystemAudioStream);
|