@webex/plugin-meetings 3.0.0-beta.187 → 3.0.0-beta.189

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.
@@ -704,8 +704,13 @@ describe('plugin-meetings', () => {
704
704
 
705
705
  describe('canBroadcastMessageToBreakout', () => {
706
706
  it('works as expected', () => {
707
- assert.deepEqual(MeetingUtil.canBroadcastMessageToBreakout(['BROADCAST_MESSAGE_TO_BREAKOUT']), true);
708
- assert.deepEqual(MeetingUtil.canBroadcastMessageToBreakout([]), false);
707
+ assert.deepEqual(MeetingUtil.canBroadcastMessageToBreakout(['BROADCAST_MESSAGE_TO_BREAKOUT'], {
708
+ [SELF_POLICY.SUPPORT_BROADCAST_MESSAGE]: true
709
+ }), true);
710
+ assert.deepEqual(MeetingUtil.canBroadcastMessageToBreakout([], {[SELF_POLICY.SUPPORT_BROADCAST_MESSAGE]: true}), false);
711
+ assert.deepEqual(MeetingUtil.canBroadcastMessageToBreakout(['BROADCAST_MESSAGE_TO_BREAKOUT'], {[SELF_POLICY.SUPPORT_BROADCAST_MESSAGE]: false}), false);
712
+ assert.deepEqual(MeetingUtil.canBroadcastMessageToBreakout(['BROADCAST_MESSAGE_TO_BREAKOUT'], undefined), false);
713
+
709
714
  });
710
715
  });
711
716