@webex/internal-plugin-presence 3.0.0-next.7 → 3.0.0-next.9

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/dist/presence.js CHANGED
@@ -254,7 +254,7 @@ var Presence = _webexCore.WebexPlugin.extend({
254
254
  dequeue: function dequeue(id) {
255
255
  return this.worker.dequeue(id);
256
256
  },
257
- version: "3.0.0-next.7"
257
+ version: "3.0.0-next.9"
258
258
  });
259
259
  var _default2 = exports.default = Presence;
260
260
  //# sourceMappingURL=presence.js.map
package/package.json CHANGED
@@ -24,22 +24,22 @@
24
24
  "@webex/eslint-config-legacy": "0.0.0",
25
25
  "@webex/jest-config-legacy": "0.0.0",
26
26
  "@webex/legacy-tools": "0.0.0",
27
- "@webex/test-helper-chai": "3.0.0-next.6",
28
- "@webex/test-helper-mocha": "3.0.0-next.6",
29
- "@webex/test-helper-mock-webex": "3.0.0-next.6",
30
- "@webex/test-helper-test-users": "3.0.0-next.6",
27
+ "@webex/test-helper-chai": "3.0.0-next.7",
28
+ "@webex/test-helper-mocha": "3.0.0-next.7",
29
+ "@webex/test-helper-mock-webex": "3.0.0-next.7",
30
+ "@webex/test-helper-test-users": "3.0.0-next.7",
31
31
  "eslint": "^8.24.0",
32
32
  "prettier": "^2.7.1",
33
33
  "sinon": "^9.2.4"
34
34
  },
35
35
  "dependencies": {
36
- "@webex/internal-plugin-device": "3.0.0-next.6",
37
- "@webex/internal-plugin-mercury": "3.0.0-next.7",
38
- "@webex/test-helper-chai": "3.0.0-next.6",
39
- "@webex/test-helper-mocha": "3.0.0-next.6",
40
- "@webex/test-helper-mock-webex": "3.0.0-next.6",
41
- "@webex/test-helper-test-users": "3.0.0-next.6",
42
- "@webex/webex-core": "3.0.0-next.6",
36
+ "@webex/internal-plugin-device": "3.0.0-next.7",
37
+ "@webex/internal-plugin-mercury": "3.0.0-next.9",
38
+ "@webex/test-helper-chai": "3.0.0-next.7",
39
+ "@webex/test-helper-mocha": "3.0.0-next.7",
40
+ "@webex/test-helper-mock-webex": "3.0.0-next.7",
41
+ "@webex/test-helper-test-users": "3.0.0-next.7",
42
+ "@webex/webex-core": "3.0.0-next.7",
43
43
  "lodash": "^4.17.21"
44
44
  },
45
45
  "scripts": {
@@ -51,5 +51,5 @@
51
51
  "test:style": "eslint ./src/**/*.*",
52
52
  "test:unit": "webex-legacy-tools test --unit --runner jest"
53
53
  },
54
- "version": "3.0.0-next.7"
54
+ "version": "3.0.0-next.9"
55
55
  }
@@ -16,7 +16,6 @@ describe.skip('presence-worker', () => {
16
16
  const id = '1234';
17
17
 
18
18
  beforeEach(() => {
19
- console.log(process.env.WEBEX_CLIENT_ID);
20
19
  webex = new MockWebex({
21
20
  children: {
22
21
  mercury: Mercury,
@@ -28,10 +27,31 @@ describe.skip('presence-worker', () => {
28
27
  });
29
28
 
30
29
  describe('#initialize()', () => {
31
- it('requires webex', () =>
32
- expect(() => worker.initialize()).toThrow(/Must initialize Presence Worker with webex!/));
33
- it('requires webex internal', () =>
34
- expect(() => worker.initialize({})).toThrow(/Must initialize Presence Worker with webex!/));
30
+ it('requires webex', () =>{
31
+ let err=null
32
+ try{
33
+ worker.initialize()
34
+ }
35
+ catch(e){
36
+ err=e
37
+ }
38
+ assert.equal(err?.message, 'Must initialize Presence Worker with webex!');
39
+
40
+ });
41
+
42
+
43
+ it('requires webex internal', () =>{
44
+ let err=null
45
+ try{
46
+ worker.initialize({})
47
+ }
48
+ catch(e){
49
+ err=e
50
+ }
51
+ assert.equal(err?.message, 'Must initialize Presence Worker with webex!');
52
+
53
+ });
54
+
35
55
  });
36
56
 
37
57
  // This selection of tests fail due to `webex-core`'s batcher config being missing.