@webex/internal-plugin-wdm 2.59.2 → 2.59.3-next.1
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/.eslintrc.js +6 -6
- package/README.md +47 -47
- package/babel.config.js +3 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/jest.config.js +3 -3
- package/package.json +16 -15
- package/process +1 -1
- package/src/index.js +15 -15
- package/test/integration/spec/webex.js +49 -49
- package/test/unit/spec/device.js +9 -9
package/.eslintrc.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const config = {
|
|
2
|
-
root: true,
|
|
3
|
-
extends: ['@webex/eslint-config-legacy'],
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
module.exports = config;
|
|
1
|
+
const config = {
|
|
2
|
+
root: true,
|
|
3
|
+
extends: ['@webex/eslint-config-legacy'],
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
module.exports = config;
|
package/README.md
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
# @webex/internal-plugin-wdm
|
|
2
|
-
|
|
3
|
-
[](https://github.com/RichardLitt/standard-readme)
|
|
4
|
-
|
|
5
|
-
> Plugin for the WDM service
|
|
6
|
-
|
|
7
|
-
This is an internal Cisco Webex plugin. As such, it does not strictly adhere to semantic versioning. Use at your own risk. If you're not working on one of our first party clients, please look at our [developer api](https://developer.webex.com/) and stick to our public plugins.
|
|
8
|
-
|
|
9
|
-
- [Deprecation](#deprecation)
|
|
10
|
-
- [Install](#install)
|
|
11
|
-
- [Usage](#usage)
|
|
12
|
-
- [Contribute](#contribute)
|
|
13
|
-
- [Maintainers](#maintainers)
|
|
14
|
-
- [License](#license)
|
|
15
|
-
|
|
16
|
-
## Deprecation
|
|
17
|
-
|
|
18
|
-
This plugin has been deprecated and only acts as an alias to the `@webex/internal-plugin-device` plugin. All changes that modify or create an import list that is inclusive of the `@webex/internal-plugin-wdm` plugin should utilize `@webex/internal-plugin-device` instead.
|
|
19
|
-
|
|
20
|
-
## Install
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
npm install --save @webex/internal-plugin-wdm
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
## Usage
|
|
27
|
-
|
|
28
|
-
```js
|
|
29
|
-
import '@webex/internal-plugin-wdm';
|
|
30
|
-
|
|
31
|
-
import WebexCore from '@webex/webex-core';
|
|
32
|
-
|
|
33
|
-
const webex = new WebexCore();
|
|
34
|
-
webex.internal.wdm.WHATEVER;
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
## Maintainers
|
|
38
|
-
|
|
39
|
-
This package is maintained by [Cisco Webex for Developers](https://developer.webex.com/).
|
|
40
|
-
|
|
41
|
-
## Contribute
|
|
42
|
-
|
|
43
|
-
Pull requests welcome. Please see [CONTRIBUTING.md](https://github.com/webex/webex-js-sdk/blob/master/CONTRIBUTING.md) for more details.
|
|
44
|
-
|
|
45
|
-
## License
|
|
46
|
-
|
|
47
|
-
© 2016-2020 Cisco and/or its affiliates. All Rights Reserved.
|
|
1
|
+
# @webex/internal-plugin-wdm
|
|
2
|
+
|
|
3
|
+
[](https://github.com/RichardLitt/standard-readme)
|
|
4
|
+
|
|
5
|
+
> Plugin for the WDM service
|
|
6
|
+
|
|
7
|
+
This is an internal Cisco Webex plugin. As such, it does not strictly adhere to semantic versioning. Use at your own risk. If you're not working on one of our first party clients, please look at our [developer api](https://developer.webex.com/) and stick to our public plugins.
|
|
8
|
+
|
|
9
|
+
- [Deprecation](#deprecation)
|
|
10
|
+
- [Install](#install)
|
|
11
|
+
- [Usage](#usage)
|
|
12
|
+
- [Contribute](#contribute)
|
|
13
|
+
- [Maintainers](#maintainers)
|
|
14
|
+
- [License](#license)
|
|
15
|
+
|
|
16
|
+
## Deprecation
|
|
17
|
+
|
|
18
|
+
This plugin has been deprecated and only acts as an alias to the `@webex/internal-plugin-device` plugin. All changes that modify or create an import list that is inclusive of the `@webex/internal-plugin-wdm` plugin should utilize `@webex/internal-plugin-device` instead.
|
|
19
|
+
|
|
20
|
+
## Install
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npm install --save @webex/internal-plugin-wdm
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
```js
|
|
29
|
+
import '@webex/internal-plugin-wdm';
|
|
30
|
+
|
|
31
|
+
import WebexCore from '@webex/webex-core';
|
|
32
|
+
|
|
33
|
+
const webex = new WebexCore();
|
|
34
|
+
webex.internal.wdm.WHATEVER;
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Maintainers
|
|
38
|
+
|
|
39
|
+
This package is maintained by [Cisco Webex for Developers](https://developer.webex.com/).
|
|
40
|
+
|
|
41
|
+
## Contribute
|
|
42
|
+
|
|
43
|
+
Pull requests welcome. Please see [CONTRIBUTING.md](https://github.com/webex/webex-js-sdk/blob/master/CONTRIBUTING.md) for more details.
|
|
44
|
+
|
|
45
|
+
## License
|
|
46
|
+
|
|
47
|
+
© 2016-2020 Cisco and/or its affiliates. All Rights Reserved.
|
package/babel.config.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const babelConfigLegacy = require('@webex/babel-config-legacy');
|
|
2
|
-
|
|
3
|
-
module.exports = babelConfigLegacy;
|
|
1
|
+
const babelConfigLegacy = require('@webex/babel-config-legacy');
|
|
2
|
+
|
|
3
|
+
module.exports = babelConfigLegacy;
|
package/dist/index.js
CHANGED
|
@@ -47,8 +47,8 @@ exports.default = void 0;
|
|
|
47
47
|
var _internalPluginDevice = _interopRequireWildcard(require("@webex/internal-plugin-device"));
|
|
48
48
|
function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
49
49
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { _Object$defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
50
|
-
/*!
|
|
51
|
-
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
50
|
+
/*!
|
|
51
|
+
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
52
52
|
*/
|
|
53
53
|
var _default = _internalPluginDevice.default;
|
|
54
54
|
exports.default = _default;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_internalPluginDevice","_interopRequireWildcard","require","_getRequireWildcardCache","nodeInterop","_WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","default","cache","has","get","newObj","hasPropertyDescriptor","_Object$defineProperty","_Object$getOwnPropertyDescriptor","key","Object","prototype","hasOwnProperty","call","desc","set","_default","Device","exports"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport Device, {\n config,\n constants,\n DeviceUrlInterceptor,\n FeatureCollection,\n FeatureModel,\n FeaturesModel,\n} from '@webex/internal-plugin-device';\n\nexport default Device;\nexport {config, constants, DeviceUrlInterceptor, FeatureCollection, FeatureModel, FeaturesModel};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAAA,qBAAA,GAAAC,uBAAA,CAAAC,OAAA;AAOuC,SAAAC,yBAAAC,WAAA,eAAAC,QAAA,kCAAAC,iBAAA,OAAAD,QAAA,QAAAE,gBAAA,OAAAF,QAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAH,wBAAAO,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,aAAAE,OAAA,CAAAF,GAAA,yBAAAA,GAAA,4BAAAG,OAAA,EAAAH,GAAA,UAAAI,KAAA,GAAAT,wBAAA,CAAAC,WAAA,OAAAQ,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAL,GAAA,YAAAI,KAAA,CAAAE,GAAA,CAAAN,GAAA,SAAAO,MAAA,WAAAC,qBAAA,GAAAC,sBAAA,IAAAC,gCAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAC,MAAA,CAAAC,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAf,GAAA,EAAAW,GAAA,SAAAK,IAAA,GAAAR,qBAAA,GAAAE,gCAAA,CAAAV,GAAA,EAAAW,GAAA,cAAAK,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA,CAAAC,GAAA,KAAAR,sBAAA,CAAAF,MAAA,EAAAI,GAAA,EAAAK,IAAA,YAAAT,MAAA,CAAAI,GAAA,IAAAX,GAAA,CAAAW,GAAA,SAAAJ,MAAA,CAAAJ,OAAA,GAAAH,GAAA,MAAAI,KAAA,IAAAA,KAAA,CAAAa,GAAA,CAAAjB,GAAA,EAAAO,MAAA,YAAAA,MAAA;AAXvC;AACA;AACA;AAFA,IAAAW,QAAA,GAaeC,6BAAM;AAAAC,OAAA,CAAAjB,OAAA,GAAAe,QAAA"}
|
|
1
|
+
{"version":3,"names":["_internalPluginDevice","_interopRequireWildcard","require","_getRequireWildcardCache","nodeInterop","_WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","default","cache","has","get","newObj","hasPropertyDescriptor","_Object$defineProperty","_Object$getOwnPropertyDescriptor","key","Object","prototype","hasOwnProperty","call","desc","set","_default","Device","exports"],"sources":["index.js"],"sourcesContent":["/*!\r\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\r\n */\r\n\r\nimport Device, {\r\n config,\r\n constants,\r\n DeviceUrlInterceptor,\r\n FeatureCollection,\r\n FeatureModel,\r\n FeaturesModel,\r\n} from '@webex/internal-plugin-device';\r\n\r\nexport default Device;\r\nexport {config, constants, DeviceUrlInterceptor, FeatureCollection, FeatureModel, FeaturesModel};\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAAA,qBAAA,GAAAC,uBAAA,CAAAC,OAAA;AAOuC,SAAAC,yBAAAC,WAAA,eAAAC,QAAA,kCAAAC,iBAAA,OAAAD,QAAA,QAAAE,gBAAA,OAAAF,QAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAH,wBAAAO,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,aAAAE,OAAA,CAAAF,GAAA,yBAAAA,GAAA,4BAAAG,OAAA,EAAAH,GAAA,UAAAI,KAAA,GAAAT,wBAAA,CAAAC,WAAA,OAAAQ,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAL,GAAA,YAAAI,KAAA,CAAAE,GAAA,CAAAN,GAAA,SAAAO,MAAA,WAAAC,qBAAA,GAAAC,sBAAA,IAAAC,gCAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAC,MAAA,CAAAC,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAf,GAAA,EAAAW,GAAA,SAAAK,IAAA,GAAAR,qBAAA,GAAAE,gCAAA,CAAAV,GAAA,EAAAW,GAAA,cAAAK,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA,CAAAC,GAAA,KAAAR,sBAAA,CAAAF,MAAA,EAAAI,GAAA,EAAAK,IAAA,YAAAT,MAAA,CAAAI,GAAA,IAAAX,GAAA,CAAAW,GAAA,SAAAJ,MAAA,CAAAJ,OAAA,GAAAH,GAAA,MAAAI,KAAA,IAAAA,KAAA,CAAAa,GAAA,CAAAjB,GAAA,EAAAO,MAAA,YAAAA,MAAA;AAXvC;AACA;AACA;AAFA,IAAAW,QAAA,GAaeC,6BAAM;AAAAC,OAAA,CAAAjB,OAAA,GAAAe,QAAA"}
|
package/jest.config.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const config = require('@webex/jest-config-legacy');
|
|
2
|
-
|
|
3
|
-
module.exports = config;
|
|
1
|
+
const config = require('@webex/jest-config-legacy');
|
|
2
|
+
|
|
3
|
+
module.exports = config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webex/internal-plugin-wdm",
|
|
3
|
-
"version": "2.59.2",
|
|
4
3
|
"description": "",
|
|
5
4
|
"license": "MIT",
|
|
6
5
|
"main": "dist/index.js",
|
|
@@ -20,14 +19,15 @@
|
|
|
20
19
|
]
|
|
21
20
|
},
|
|
22
21
|
"dependencies": {
|
|
23
|
-
"@webex/internal-plugin-device": "2.59.
|
|
24
|
-
"@webex/test-helper-chai": "2.59.
|
|
25
|
-
"@webex/test-helper-test-users": "2.59.
|
|
26
|
-
"@webex/webex-core": "2.59.
|
|
22
|
+
"@webex/internal-plugin-device": "^2.59.3-next.1",
|
|
23
|
+
"@webex/test-helper-chai": "^2.59.3-next.1",
|
|
24
|
+
"@webex/test-helper-test-users": "^2.59.3-next.1",
|
|
25
|
+
"@webex/webex-core": "^2.59.3-next.1"
|
|
27
26
|
},
|
|
28
27
|
"scripts": {
|
|
29
28
|
"build": "yarn build:src",
|
|
30
29
|
"build:src": "webex-legacy-tools build -dest \"./dist\" -src \"./src\" -js -ts -maps",
|
|
30
|
+
"deploy:npm": "yarn npm publish",
|
|
31
31
|
"test": "yarn test:style && yarn test:unit && yarn test:integration && yarn test:browser",
|
|
32
32
|
"test:browser": "webex-legacy-tools test --integration --unit --runner karma",
|
|
33
33
|
"test:integration": "webex-legacy-tools test --integration --runner mocha",
|
|
@@ -36,15 +36,16 @@
|
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@babel/core": "^7.17.10",
|
|
39
|
-
"@webex/babel-config-legacy": "
|
|
40
|
-
"@webex/eslint-config-legacy": "
|
|
41
|
-
"@webex/jest-config-legacy": "
|
|
42
|
-
"@webex/legacy-tools": "
|
|
43
|
-
"@webex/test-helper-chai": "2.59.
|
|
44
|
-
"@webex/test-helper-mocha": "2.59.
|
|
45
|
-
"@webex/test-helper-mock-webex": "2.59.
|
|
46
|
-
"@webex/test-helper-test-users": "2.59.
|
|
39
|
+
"@webex/babel-config-legacy": "^0.0.0",
|
|
40
|
+
"@webex/eslint-config-legacy": "^0.0.0",
|
|
41
|
+
"@webex/jest-config-legacy": "^0.0.0",
|
|
42
|
+
"@webex/legacy-tools": "^0.0.0",
|
|
43
|
+
"@webex/test-helper-chai": "^2.59.3-next.1",
|
|
44
|
+
"@webex/test-helper-mocha": "^2.59.3-next.1",
|
|
45
|
+
"@webex/test-helper-mock-webex": "^2.59.3-next.1",
|
|
46
|
+
"@webex/test-helper-test-users": "^2.59.3-next.1",
|
|
47
47
|
"eslint": "^8.24.0",
|
|
48
48
|
"prettier": "^2.7.1"
|
|
49
|
-
}
|
|
50
|
-
|
|
49
|
+
},
|
|
50
|
+
"version": "2.59.3-next.1"
|
|
51
|
+
}
|
package/process
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = {browser: true};
|
|
1
|
+
module.exports = {browser: true};
|
package/src/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import Device, {
|
|
6
|
-
config,
|
|
7
|
-
constants,
|
|
8
|
-
DeviceUrlInterceptor,
|
|
9
|
-
FeatureCollection,
|
|
10
|
-
FeatureModel,
|
|
11
|
-
FeaturesModel,
|
|
12
|
-
} from '@webex/internal-plugin-device';
|
|
13
|
-
|
|
14
|
-
export default Device;
|
|
15
|
-
export {config, constants, DeviceUrlInterceptor, FeatureCollection, FeatureModel, FeaturesModel};
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import Device, {
|
|
6
|
+
config,
|
|
7
|
+
constants,
|
|
8
|
+
DeviceUrlInterceptor,
|
|
9
|
+
FeatureCollection,
|
|
10
|
+
FeatureModel,
|
|
11
|
+
FeaturesModel,
|
|
12
|
+
} from '@webex/internal-plugin-device';
|
|
13
|
+
|
|
14
|
+
export default Device;
|
|
15
|
+
export {config, constants, DeviceUrlInterceptor, FeatureCollection, FeatureModel, FeaturesModel};
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import '@webex/internal-plugin-wdm';
|
|
6
|
-
|
|
7
|
-
import {assert} from '@webex/test-helper-chai';
|
|
8
|
-
import WebexCore from '@webex/webex-core';
|
|
9
|
-
import testUsers from '@webex/test-helper-test-users';
|
|
10
|
-
|
|
11
|
-
describe('plugin-wdm', () => {
|
|
12
|
-
describe('Webex', () => {
|
|
13
|
-
let device;
|
|
14
|
-
let user;
|
|
15
|
-
let webex;
|
|
16
|
-
|
|
17
|
-
before('create users', () =>
|
|
18
|
-
testUsers.create({count: 1}).then(([createdUser]) => {
|
|
19
|
-
user = createdUser;
|
|
20
|
-
})
|
|
21
|
-
);
|
|
22
|
-
|
|
23
|
-
beforeEach('create webex instance', () => {
|
|
24
|
-
webex = new WebexCore({
|
|
25
|
-
credentials: user.token,
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
device = webex.internal.device;
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
describe('when the plugin is imported', () => {
|
|
32
|
-
it("should define a 'device' plugin", () => assert.isDefined(device));
|
|
33
|
-
|
|
34
|
-
it('should contain all common device method members', () => {
|
|
35
|
-
assert.isFunction(device.checkNetworkReachability);
|
|
36
|
-
assert.isFunction(device.clear);
|
|
37
|
-
assert.isFunction(device.getWebSocketUrl);
|
|
38
|
-
assert.isFunction(device.meetingEnded);
|
|
39
|
-
assert.isFunction(device.meetingStarted);
|
|
40
|
-
assert.isFunction(device.processRegistrationSuccess);
|
|
41
|
-
assert.isFunction(device.resetLogoutTimer);
|
|
42
|
-
assert.isFunction(device.setLogoutTimer);
|
|
43
|
-
assert.isFunction(device.refresh);
|
|
44
|
-
assert.isFunction(device.register);
|
|
45
|
-
assert.isFunction(device.unregister);
|
|
46
|
-
});
|
|
47
|
-
});
|
|
48
|
-
});
|
|
49
|
-
});
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import '@webex/internal-plugin-wdm';
|
|
6
|
+
|
|
7
|
+
import {assert} from '@webex/test-helper-chai';
|
|
8
|
+
import WebexCore from '@webex/webex-core';
|
|
9
|
+
import testUsers from '@webex/test-helper-test-users';
|
|
10
|
+
|
|
11
|
+
describe('plugin-wdm', () => {
|
|
12
|
+
describe('Webex', () => {
|
|
13
|
+
let device;
|
|
14
|
+
let user;
|
|
15
|
+
let webex;
|
|
16
|
+
|
|
17
|
+
before('create users', () =>
|
|
18
|
+
testUsers.create({count: 1}).then(([createdUser]) => {
|
|
19
|
+
user = createdUser;
|
|
20
|
+
})
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
beforeEach('create webex instance', () => {
|
|
24
|
+
webex = new WebexCore({
|
|
25
|
+
credentials: user.token,
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
device = webex.internal.device;
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
describe('when the plugin is imported', () => {
|
|
32
|
+
it("should define a 'device' plugin", () => assert.isDefined(device));
|
|
33
|
+
|
|
34
|
+
it('should contain all common device method members', () => {
|
|
35
|
+
assert.isFunction(device.checkNetworkReachability);
|
|
36
|
+
assert.isFunction(device.clear);
|
|
37
|
+
assert.isFunction(device.getWebSocketUrl);
|
|
38
|
+
assert.isFunction(device.meetingEnded);
|
|
39
|
+
assert.isFunction(device.meetingStarted);
|
|
40
|
+
assert.isFunction(device.processRegistrationSuccess);
|
|
41
|
+
assert.isFunction(device.resetLogoutTimer);
|
|
42
|
+
assert.isFunction(device.setLogoutTimer);
|
|
43
|
+
assert.isFunction(device.refresh);
|
|
44
|
+
assert.isFunction(device.register);
|
|
45
|
+
assert.isFunction(device.unregister);
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
});
|
package/test/unit/spec/device.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {assert} from '@webex/test-helper-chai';
|
|
2
|
-
|
|
3
|
-
describe('plugin-wdm', () => {
|
|
4
|
-
describe('Device', () => {
|
|
5
|
-
it('does not have any unit tests', () => {
|
|
6
|
-
assert.isTrue(true);
|
|
7
|
-
});
|
|
8
|
-
});
|
|
9
|
-
});
|
|
1
|
+
import {assert} from '@webex/test-helper-chai';
|
|
2
|
+
|
|
3
|
+
describe('plugin-wdm', () => {
|
|
4
|
+
describe('Device', () => {
|
|
5
|
+
it('does not have any unit tests', () => {
|
|
6
|
+
assert.isTrue(true);
|
|
7
|
+
});
|
|
8
|
+
});
|
|
9
|
+
});
|