@webex/plugin-meetings 3.0.0-beta.174 → 3.0.0-beta.175
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/constants.js +11 -2
- package/dist/constants.js.map +1 -1
- package/dist/interpretation/index.js +143 -5
- package/dist/interpretation/index.js.map +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/meeting/index.js +10 -1
- package/dist/meeting/index.js.map +1 -1
- package/dist/types/constants.d.ts +9 -0
- package/package.json +19 -19
- package/src/constants.ts +9 -0
- package/src/interpretation/README.md +11 -2
- package/src/interpretation/index.ts +140 -4
- package/src/meeting/index.ts +19 -0
- package/test/unit/spec/interpretation/index.ts +250 -9
- package/test/unit/spec/interpretation/siLanguage.ts +2 -0
- package/test/unit/spec/meeting/index.js +43 -2
|
@@ -1335,7 +1335,7 @@ describe('plugin-meetings', () => {
|
|
|
1335
1335
|
icePhase: 'JOIN_MEETING_FINAL',
|
|
1336
1336
|
errors: [{}],
|
|
1337
1337
|
},
|
|
1338
|
-
options: {
|
|
1338
|
+
options: {
|
|
1339
1339
|
meetingId: meeting.id,
|
|
1340
1340
|
},
|
|
1341
1341
|
});
|
|
@@ -4287,7 +4287,7 @@ describe('plugin-meetings', () => {
|
|
|
4287
4287
|
icePhase: 'IN_MEETING',
|
|
4288
4288
|
errors: [{}],
|
|
4289
4289
|
},
|
|
4290
|
-
options: {
|
|
4290
|
+
options: {
|
|
4291
4291
|
meetingId: meeting.id,
|
|
4292
4292
|
},
|
|
4293
4293
|
});
|
|
@@ -5108,6 +5108,9 @@ describe('plugin-meetings', () => {
|
|
|
5108
5108
|
meeting.annotation = {
|
|
5109
5109
|
approvalUrlUpdate: sinon.stub().returns(undefined),
|
|
5110
5110
|
};
|
|
5111
|
+
meeting.simultaneousInterpretation = {
|
|
5112
|
+
approvalUrlUpdate: sinon.stub().returns(undefined),
|
|
5113
|
+
};
|
|
5111
5114
|
|
|
5112
5115
|
meeting.locusInfo.emit(
|
|
5113
5116
|
{function: 'test', file: 'test'},
|
|
@@ -5123,6 +5126,10 @@ describe('plugin-meetings', () => {
|
|
|
5123
5126
|
meeting.annotation.approvalUrlUpdate,
|
|
5124
5127
|
newLocusServices.services.approval.url,
|
|
5125
5128
|
);
|
|
5129
|
+
assert.calledWith(
|
|
5130
|
+
meeting.simultaneousInterpretation.approvalUrlUpdate,
|
|
5131
|
+
newLocusServices.services.approval.url,
|
|
5132
|
+
);
|
|
5126
5133
|
assert.calledOnce(meeting.recordingController.setSessionId);
|
|
5127
5134
|
done();
|
|
5128
5135
|
});
|
|
@@ -5226,6 +5233,20 @@ describe('plugin-meetings', () => {
|
|
|
5226
5233
|
EVENT_TRIGGERS.MEETING_INTERPRETATION_SUPPORT_LANGUAGES_UPDATE
|
|
5227
5234
|
);
|
|
5228
5235
|
});
|
|
5236
|
+
|
|
5237
|
+
it('listens to the handoff request event from interpretation and triggers the update event', () => {
|
|
5238
|
+
TriggerProxy.trigger.reset();
|
|
5239
|
+
const payload = {};
|
|
5240
|
+
meeting.simultaneousInterpretation.trigger('HANDOFF_REQUESTS_ARRIVED', payload);
|
|
5241
|
+
|
|
5242
|
+
assert.calledWith(
|
|
5243
|
+
TriggerProxy.trigger,
|
|
5244
|
+
meeting,
|
|
5245
|
+
{file: 'meeting/index', function: 'setUpInterpretationListener'},
|
|
5246
|
+
EVENT_TRIGGERS.MEETING_INTERPRETATION_HANDOFF_REQUESTS_ARRIVED,
|
|
5247
|
+
payload
|
|
5248
|
+
);
|
|
5249
|
+
});
|
|
5229
5250
|
});
|
|
5230
5251
|
});
|
|
5231
5252
|
describe('Private Detailed API and Helpers', () => {
|
|
@@ -5508,6 +5529,26 @@ describe('plugin-meetings', () => {
|
|
|
5508
5529
|
|
|
5509
5530
|
checkParseMeetingInfo(expectedInfoToParse);
|
|
5510
5531
|
});
|
|
5532
|
+
it('should set hostSIEnabled correctly depend on the toggle statue in site setting', () => {
|
|
5533
|
+
const updateHostSIEnabledSpy = sinon.spy(meeting.simultaneousInterpretation, 'updateHostSIEnabled');
|
|
5534
|
+
const mockToggleOnData = {
|
|
5535
|
+
body: {
|
|
5536
|
+
meetingSiteSetting: {
|
|
5537
|
+
enableHostInterpreterControlSI: true,
|
|
5538
|
+
}
|
|
5539
|
+
}
|
|
5540
|
+
};
|
|
5541
|
+
meeting.parseMeetingInfo(mockToggleOnData);
|
|
5542
|
+
assert.calledWith(updateHostSIEnabledSpy, true);
|
|
5543
|
+
|
|
5544
|
+
const mockToggleOffData = {
|
|
5545
|
+
body: {
|
|
5546
|
+
meetingSiteSetting: {}
|
|
5547
|
+
}
|
|
5548
|
+
};
|
|
5549
|
+
meeting.parseMeetingInfo(mockToggleOffData);
|
|
5550
|
+
assert.calledWith(updateHostSIEnabledSpy, false);
|
|
5551
|
+
});
|
|
5511
5552
|
});
|
|
5512
5553
|
|
|
5513
5554
|
describe('#setCorrelationId', () => {
|