@webex/plugin-meetings 2.11.1 → 2.13.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.
@@ -0,0 +1,39 @@
1
+ import sinon from 'sinon';
2
+ import chai from 'chai';
3
+ import chaiAsPromised from 'chai-as-promised';
4
+
5
+ import MembersUtil from '@webex/plugin-meetings/src/members/util';
6
+
7
+ const {assert} = chai;
8
+
9
+ chai.use(chaiAsPromised);
10
+ sinon.assert.expose(chai.assert, {prefix: ''});
11
+
12
+ describe('plugin-meetings', () => {
13
+ describe('members utils library', () => {
14
+ describe('#generateRaiseHandMemberOptions', () => {
15
+ it('returns the correct options', () => {
16
+ const memberId = 'test';
17
+ const status = true;
18
+ const locusUrl = 'urlTest1';
19
+
20
+ assert.deepEqual(MembersUtil.generateRaiseHandMemberOptions(memberId, status, locusUrl), {
21
+ memberId,
22
+ raised: status,
23
+ locusUrl
24
+ });
25
+ });
26
+ });
27
+ describe('#generateLowerAllHandsMemberOptions', () => {
28
+ it('returns the correct options', () => {
29
+ const requestingParticipantId = 'test';
30
+ const locusUrl = 'urlTest1';
31
+
32
+ assert.deepEqual(MembersUtil.generateLowerAllHandsMemberOptions(requestingParticipantId, locusUrl), {
33
+ requestingParticipantId,
34
+ locusUrl
35
+ });
36
+ });
37
+ });
38
+ });
39
+ });