@webex/plugin-meetings 3.0.0-beta.71 → 3.0.0-beta.72

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.
@@ -2942,6 +2942,7 @@ describe('plugin-meetings', () => {
2942
2942
  const FAKE_CAPTCHA_IMAGE_URL = 'http://captchaimage';
2943
2943
  const FAKE_CAPTCHA_AUDIO_URL = 'http://captchaaudio';
2944
2944
  const FAKE_CAPTCHA_REFRESH_URL = 'http://captcharefresh';
2945
+ const FAKE_INSTALLED_ORG_ID = '123456';
2945
2946
  const FAKE_MEETING_INFO = {
2946
2947
  conversationUrl: 'some_convo_url',
2947
2948
  locusUrl: 'some_locus_url',
@@ -2969,6 +2970,7 @@ describe('plugin-meetings', () => {
2969
2970
  meeting.requiredCaptcha = FAKE_SDK_CAPTCHA_INFO;
2970
2971
  meeting.destination = FAKE_DESTINATION;
2971
2972
  meeting.destinationType = FAKE_TYPE;
2973
+ meeting.config.installedOrgID = FAKE_INSTALLED_ORG_ID;
2972
2974
  meeting.parseMeetingInfo = sinon.stub().returns(undefined);
2973
2975
 
2974
2976
  await meeting.fetchMeetingInfo({
@@ -2981,7 +2983,8 @@ describe('plugin-meetings', () => {
2981
2983
  FAKE_DESTINATION,
2982
2984
  FAKE_TYPE,
2983
2985
  FAKE_PASSWORD,
2984
- {code: FAKE_CAPTCHA_CODE, id: FAKE_CAPTCHA_ID}
2986
+ {code: FAKE_CAPTCHA_CODE, id: FAKE_CAPTCHA_ID},
2987
+ FAKE_INSTALLED_ORG_ID
2985
2988
  );
2986
2989
 
2987
2990
  assert.calledWith(meeting.parseMeetingInfo, {body: FAKE_MEETING_INFO}, FAKE_DESTINATION);
@@ -211,6 +211,33 @@ describe('plugin-meetings', () => {
211
211
  );
212
212
  });
213
213
 
214
+ it('should fetch meeting info with provided installedOrgID', async () => {
215
+ const requestResponse = {statusCode: 200, body: {meetingKey: '1234323'}};
216
+ const installedOrgID = '123456';
217
+
218
+ webex.request.resolves(requestResponse);
219
+
220
+ const result = await meetingInfo.fetchMeetingInfo('1234323', _MEETING_ID_, null, null, installedOrgID);
221
+
222
+ assert.calledWith(webex.request, {
223
+ method: 'POST',
224
+ service: WBXAPPAPI_SERVICE,
225
+ resource: 'meetingInfo',
226
+ body: {
227
+ supportHostKey: true,
228
+ supportCountryList: true,
229
+ meetingKey: '1234323',
230
+ installedOrgID,
231
+ },
232
+ });
233
+ assert.deepEqual(result, requestResponse);
234
+ assert(Metrics.sendBehavioralMetric.calledOnce);
235
+ assert.calledWith(
236
+ Metrics.sendBehavioralMetric,
237
+ BEHAVIORAL_METRICS.FETCH_MEETING_INFO_V1_SUCCESS
238
+ );
239
+ });
240
+
214
241
  it('create adhoc meeting when conversationUrl passed with enableAdhocMeetings toggle', async () => {
215
242
  sinon.stub(meetingInfo, 'createAdhocSpaceMeeting').returns(Promise.resolve());
216
243
  await meetingInfo.fetchMeetingInfo('conversationUrl', _CONVERSATION_URL_);