@webex/plugin-meetings 3.11.0-next.37 → 3.11.0-next.39

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.
@@ -1053,6 +1053,46 @@ describe('plugin-meetings', () => {
1053
1053
  });
1054
1054
  });
1055
1055
 
1056
+ describe('requireHostEndMeetingBeforeLeave', () => {
1057
+ it('works as expected', () => {
1058
+ assert.deepEqual(
1059
+ MeetingUtil.requireHostEndMeetingBeforeLeave(['REQUIRE_HOST_END_MEETING_BEFORE_LEAVE']),
1060
+ true
1061
+ );
1062
+ assert.deepEqual(
1063
+ MeetingUtil.requireHostEndMeetingBeforeLeave([
1064
+ 'LEAVE_TRANSFER_HOST_END_MEETING',
1065
+ 'END_MEETING',
1066
+ ]),
1067
+ false
1068
+ );
1069
+ assert.deepEqual(
1070
+ MeetingUtil.requireHostEndMeetingBeforeLeave([
1071
+ 'REQUIRE_HOST_END_MEETING_BEFORE_LEAVE',
1072
+ 'END_MEETING',
1073
+ ]),
1074
+ true
1075
+ );
1076
+ assert.deepEqual(
1077
+ MeetingUtil.requireHostEndMeetingBeforeLeave([
1078
+ 'REQUIRE_HOST_END_MEETING_BEFORE_LEAVE',
1079
+ 'LEAVE_MEETING',
1080
+ ]),
1081
+ true
1082
+ );
1083
+ assert.deepEqual(
1084
+ MeetingUtil.requireHostEndMeetingBeforeLeave([
1085
+ 'REQUIRE_HOST_END_MEETING_BEFORE_LEAVE',
1086
+ 'LEAVE_MEETING',
1087
+ 'END_MEETING',
1088
+ ]),
1089
+ true
1090
+ );
1091
+ assert.deepEqual(MeetingUtil.requireHostEndMeetingBeforeLeave(['END_MEETING']), true);
1092
+ assert.deepEqual(MeetingUtil.requireHostEndMeetingBeforeLeave([]), false);
1093
+ });
1094
+ });
1095
+
1056
1096
  describe('canUserLock', () => {
1057
1097
  it('works as expected', () => {
1058
1098
  assert.deepEqual(