@webex/plugin-meetings 3.0.0-beta.87 → 3.0.0-beta.89

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.
@@ -202,7 +202,22 @@ describe('plugin-meetings', () => {
202
202
  assert.deepEqual(requestParams.body.deviceCapabilities, ['BREAKOUTS_SUPPORTED']);
203
203
  });
204
204
 
205
- it('does not add deviceCapabilities to request when breakouts are not supported', async () => {
205
+ it('adds deviceCapabilities to request when live annotation are supported', async () => {
206
+ await meetingsRequest.joinMeeting({
207
+ liveAnnotationSupported: true
208
+ });
209
+ const requestParams = meetingsRequest.request.getCall(0).args[0];
210
+ assert.deepEqual(requestParams.body.deviceCapabilities, ['ANNOTATION_ON_SHARE_SUPPORTED']);
211
+ });
212
+ it('adds deviceCapabilities to request when breakouts and live annotation are supported', async () => {
213
+ await meetingsRequest.joinMeeting({
214
+ liveAnnotationSupported: true,
215
+ breakoutsSupported: true,
216
+ });
217
+ const requestParams = meetingsRequest.request.getCall(0).args[0];
218
+ assert.deepEqual(requestParams.body.deviceCapabilities, ['BREAKOUTS_SUPPORTED','ANNOTATION_ON_SHARE_SUPPORTED']);
219
+ });
220
+ it('does not add deviceCapabilities to request when breakouts and live annotation are not supported', async () => {
206
221
  await meetingsRequest.joinMeeting({});
207
222
 
208
223
  const requestParams = meetingsRequest.request.getCall(0).args[0];
@@ -389,4 +404,53 @@ describe('plugin-meetings', () => {
389
404
  })
390
405
  });
391
406
  });
407
+ describe('#changeMeetingFloor', () => {
408
+
409
+ it('change meeting floor', async () => {
410
+ const options = {
411
+ disposition: 'GRANTED',
412
+ personUrl: 'personUrl',
413
+ deviceUrl: 'deviceUrl',
414
+ resourceId: 'resourceId',
415
+ resourceUrl: 'resourceUrl',
416
+ uri: 'optionsUrl',
417
+ annotation:{
418
+ version: '1',
419
+ policy: 'Approval',
420
+ },
421
+ }
422
+
423
+ const expectBody = {
424
+ annotation: {
425
+ policy: 'Approval',
426
+ version: '1',
427
+ },
428
+ floor: {
429
+ beneficiary: {
430
+ devices: [
431
+ {
432
+ deviceType: undefined,
433
+ url: "deviceUrl"
434
+ }
435
+ ],
436
+ url: 'personUrl',
437
+ },
438
+ disposition: 'GRANTED',
439
+ requester: {
440
+ "url": "personUrl"
441
+ }
442
+ },
443
+ resourceUrl: 'resourceUrl',
444
+ };
445
+
446
+
447
+ await meetingsRequest.changeMeetingFloor(options);
448
+
449
+ assert.deepEqual(meetingsRequest.request.getCall(0).args[0], {
450
+ method: 'PUT',
451
+ uri: 'optionsUrl',
452
+ body: expectBody,
453
+ })
454
+ });
455
+ });
392
456
  });
@@ -39,6 +39,7 @@ describe('plugin-meetings', () => {
39
39
  meeting.stopKeepAlive = sinon.stub();
40
40
  meeting.updateLLMConnection = sinon.stub();
41
41
  meeting.breakouts = {cleanUp: sinon.stub()};
42
+ meeting.annotaion = {cleanUp: sinon.stub()};
42
43
  });
43
44
 
44
45
  afterEach(() => {