@webex/internal-plugin-conversation 2.41.0 → 2.43.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webex/internal-plugin-conversation",
3
- "version": "2.41.0",
3
+ "version": "2.43.0",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -20,26 +20,26 @@
20
20
  ]
21
21
  },
22
22
  "dependencies": {
23
- "@webex/common": "2.41.0",
24
- "@webex/helper-html": "2.41.0",
25
- "@webex/helper-image": "2.41.0",
26
- "@webex/internal-plugin-conversation": "2.41.0",
27
- "@webex/internal-plugin-encryption": "2.41.0",
28
- "@webex/internal-plugin-user": "2.41.0",
29
- "@webex/webex-core": "2.41.0",
23
+ "@webex/common": "2.43.0",
24
+ "@webex/helper-html": "2.43.0",
25
+ "@webex/helper-image": "2.43.0",
26
+ "@webex/internal-plugin-conversation": "2.43.0",
27
+ "@webex/internal-plugin-encryption": "2.43.0",
28
+ "@webex/internal-plugin-user": "2.43.0",
29
+ "@webex/webex-core": "2.43.0",
30
30
  "crypto-js": "^4.1.1",
31
31
  "lodash": "^4.17.21",
32
32
  "node-scr": "^0.3.0",
33
33
  "uuid": "^3.3.2"
34
34
  },
35
35
  "devDependencies": {
36
- "@webex/test-helper-chai": "2.41.0",
37
- "@webex/test-helper-file": "2.41.0",
38
- "@webex/test-helper-make-local-url": "2.41.0",
39
- "@webex/test-helper-mocha": "2.41.0",
40
- "@webex/test-helper-mock-webex": "2.41.0",
41
- "@webex/test-helper-retry": "2.41.0",
42
- "@webex/test-helper-test-users": "2.41.0",
36
+ "@webex/test-helper-chai": "2.43.0",
37
+ "@webex/test-helper-file": "2.43.0",
38
+ "@webex/test-helper-make-local-url": "2.43.0",
39
+ "@webex/test-helper-mocha": "2.43.0",
40
+ "@webex/test-helper-mock-webex": "2.43.0",
41
+ "@webex/test-helper-retry": "2.43.0",
42
+ "@webex/test-helper-test-users": "2.43.0",
43
43
  "sinon": "^9.2.4"
44
44
  }
45
45
  }
@@ -5,7 +5,6 @@
5
5
  import {assert} from '@webex/test-helper-chai';
6
6
  import MockWebex from '@webex/test-helper-mock-webex';
7
7
  import sinon from 'sinon';
8
-
9
8
  import Conversation from '@webex/internal-plugin-conversation';
10
9
 
11
10
  import {
@@ -139,9 +138,7 @@ describe('plugin-conversation', () => {
139
138
  it('should convert a "us" cluster to WEBEX_CONVERSATION_DEFAULT_CLUSTER cluster', async () => {
140
139
  await webex.internal.conversation.getUrlFromClusterId({cluster: 'us'});
141
140
 
142
- sinon.assert.calledWith(webex.internal.services.getServiceFromClusterId, {
143
- clusterId: process.env.WEBEX_CONVERSATION_DEFAULT_CLUSTER,
144
- });
141
+ sinon.assert.calledWith(webex.internal.services.getServiceFromClusterId, {clusterId: 'urn:TEAM:us-east-2_a:identityLookup'});
145
142
  });
146
143
 
147
144
  it('should add the cluster service when missing', async () => {
@@ -155,11 +152,9 @@ describe('plugin-conversation', () => {
155
152
 
156
153
  describe('paginate', () => {
157
154
  it('should throw an error if a page is passed with no links', () => {
158
- try {
159
- webex.internal.conversation.paginate({page: {}});
160
- } catch (error) {
155
+ webex.internal.conversation.paginate({page: {}}).catch((error) => {
161
156
  assert.equal(error.message, 'No link to follow for the provided page');
162
- }
157
+ });
163
158
  });
164
159
  });
165
160
 
@@ -334,14 +329,12 @@ describe('plugin-conversation', () => {
334
329
  conversationUrl: convoUrl,
335
330
  });
336
331
 
337
- try {
338
- jumpToActivity();
339
- } catch (e) {
332
+ jumpToActivity().catch((e) => {
340
333
  assert.equal(
341
334
  e.message,
342
335
  'Search must be an activity object from conversation service'
343
336
  );
344
- }
337
+ });
345
338
  });
346
339
 
347
340
  it('should throw an error if activity.target.url is missing', () => {
@@ -349,11 +342,9 @@ describe('plugin-conversation', () => {
349
342
  conversationUrl: convoUrl,
350
343
  });
351
344
 
352
- try {
353
- assert.throws(jumpToActivity({target: null}));
354
- } catch (e) {
355
- //
356
- }
345
+ jumpToActivity({target: null}).catch((e) => {
346
+ assert.equal(e.message, 'Search object must have a target url!');
347
+ });
357
348
  });
358
349
 
359
350
  it('should implement the iterator protocol', () => {