@webex/plugin-meetings 3.0.0-beta.131 → 3.0.0-beta.133
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/dist/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +1 -1
- package/dist/meeting/index.js +198 -196
- package/dist/meeting/index.js.map +1 -1
- package/dist/statsAnalyzer/index.js +0 -1
- package/dist/statsAnalyzer/index.js.map +1 -1
- package/package.json +19 -19
- package/src/meeting/index.ts +11 -4
- package/src/statsAnalyzer/index.ts +0 -1
- package/test/unit/spec/meeting/index.js +23 -9
|
@@ -981,24 +981,15 @@ describe('plugin-meetings', () => {
|
|
|
981
981
|
|
|
982
982
|
it('should call updateLLMConnection upon joining if config value is set', async () => {
|
|
983
983
|
meeting.config.enableAutomaticLLM = true;
|
|
984
|
-
meeting.webex.internal.llm.on = sinon.stub();
|
|
985
|
-
meeting.processRelayEvent = sinon.stub();
|
|
986
984
|
await meeting.join();
|
|
987
985
|
|
|
988
986
|
assert.calledOnce(meeting.updateLLMConnection);
|
|
989
|
-
assert.calledOnceWithExactly(
|
|
990
|
-
meeting.webex.internal.llm.on,
|
|
991
|
-
'event:relay.event',
|
|
992
|
-
meeting.processRelayEvent
|
|
993
|
-
);
|
|
994
987
|
});
|
|
995
988
|
|
|
996
989
|
it('should not call updateLLMConnection upon joining if config value is not set', async () => {
|
|
997
|
-
meeting.webex.internal.llm.on = sinon.stub();
|
|
998
990
|
await meeting.join();
|
|
999
991
|
|
|
1000
992
|
assert.notCalled(meeting.updateLLMConnection);
|
|
1001
|
-
assert.notCalled(meeting.webex.internal.llm.on);
|
|
1002
993
|
});
|
|
1003
994
|
|
|
1004
995
|
it('should invoke `receiveTranscription()` if receiveTranscription is set to true', async () => {
|
|
@@ -5854,6 +5845,8 @@ describe('plugin-meetings', () => {
|
|
|
5854
5845
|
.stub()
|
|
5855
5846
|
.returns(Promise.resolve('something'));
|
|
5856
5847
|
webex.internal.llm.disconnectLLM = sinon.stub().returns(Promise.resolve());
|
|
5848
|
+
meeting.webex.internal.llm.on = sinon.stub();
|
|
5849
|
+
meeting.processRelayEvent = sinon.stub();
|
|
5857
5850
|
});
|
|
5858
5851
|
|
|
5859
5852
|
it('does not connect if the call is not joined yet', async () => {
|
|
@@ -5867,6 +5860,7 @@ describe('plugin-meetings', () => {
|
|
|
5867
5860
|
assert.notCalled(webex.internal.llm.registerAndConnect);
|
|
5868
5861
|
assert.notCalled(webex.internal.llm.disconnectLLM);
|
|
5869
5862
|
assert.equal(result, undefined);
|
|
5863
|
+
assert.notCalled(meeting.webex.internal.llm.on);
|
|
5870
5864
|
});
|
|
5871
5865
|
|
|
5872
5866
|
it('returns undefined if llm is already connected and the locus url is unchanged', async () => {
|
|
@@ -5881,17 +5875,24 @@ describe('plugin-meetings', () => {
|
|
|
5881
5875
|
assert.notCalled(webex.internal.llm.registerAndConnect);
|
|
5882
5876
|
assert.notCalled(webex.internal.llm.disconnectLLM);
|
|
5883
5877
|
assert.equal(result, undefined);
|
|
5878
|
+
assert.notCalled(meeting.webex.internal.llm.on);
|
|
5884
5879
|
});
|
|
5885
5880
|
|
|
5886
5881
|
it('connects if not already connected', async () => {
|
|
5887
5882
|
meeting.joinedWith = {state: 'JOINED'};
|
|
5888
5883
|
meeting.locusInfo = {url: 'a url', info: {datachannelUrl: 'a datachannel url'}};
|
|
5884
|
+
|
|
5889
5885
|
|
|
5890
5886
|
const result = await meeting.updateLLMConnection();
|
|
5891
5887
|
|
|
5892
5888
|
assert.notCalled(webex.internal.llm.disconnectLLM);
|
|
5893
5889
|
assert.calledWith(webex.internal.llm.registerAndConnect, 'a url', 'a datachannel url');
|
|
5894
5890
|
assert.equal(result, 'something');
|
|
5891
|
+
assert.calledOnceWithExactly(
|
|
5892
|
+
meeting.webex.internal.llm.on,
|
|
5893
|
+
'event:relay.event',
|
|
5894
|
+
meeting.processRelayEvent
|
|
5895
|
+
);
|
|
5895
5896
|
});
|
|
5896
5897
|
|
|
5897
5898
|
it('disconnects if first if the locus url has changed', async () => {
|
|
@@ -5910,12 +5911,19 @@ describe('plugin-meetings', () => {
|
|
|
5910
5911
|
'a datachannel url'
|
|
5911
5912
|
);
|
|
5912
5913
|
assert.equal(result, 'something');
|
|
5914
|
+
assert.calledOnceWithExactly(
|
|
5915
|
+
meeting.webex.internal.llm.on,
|
|
5916
|
+
'event:relay.event',
|
|
5917
|
+
meeting.processRelayEvent
|
|
5918
|
+
);
|
|
5913
5919
|
});
|
|
5914
5920
|
|
|
5915
5921
|
it('disconnects when the state is not JOINED', async () => {
|
|
5916
5922
|
meeting.joinedWith = {state: 'any other state'};
|
|
5917
5923
|
webex.internal.llm.isConnected.returns(true);
|
|
5918
5924
|
webex.internal.llm.getLocusUrl.returns('a url');
|
|
5925
|
+
meeting.webex.internal.llm.off = sinon.stub();
|
|
5926
|
+
meeting.processRelayEvent = sinon.stub();
|
|
5919
5927
|
|
|
5920
5928
|
meeting.locusInfo = {url: 'a url', info: {datachannelUrl: 'a datachannel url'}};
|
|
5921
5929
|
|
|
@@ -5924,7 +5932,13 @@ describe('plugin-meetings', () => {
|
|
|
5924
5932
|
assert.calledWith(webex.internal.llm.disconnectLLM);
|
|
5925
5933
|
assert.notCalled(webex.internal.llm.registerAndConnect);
|
|
5926
5934
|
assert.equal(result, undefined);
|
|
5935
|
+
assert.calledOnceWithExactly(
|
|
5936
|
+
meeting.webex.internal.llm.off,
|
|
5937
|
+
'event:relay.event',
|
|
5938
|
+
meeting.processRelayEvent
|
|
5939
|
+
);
|
|
5927
5940
|
});
|
|
5941
|
+
|
|
5928
5942
|
});
|
|
5929
5943
|
|
|
5930
5944
|
describe('#setLocus', () => {
|