@webex/calling 3.12.0-next.109 → 3.12.0-next.110
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/CallingClient/CallingClient.js +2 -2
- package/dist/CallingClient/CallingClient.js.map +1 -1
- package/dist/CallingClient/calling/call.js +13 -6
- package/dist/CallingClient/calling/call.js.map +1 -1
- package/dist/CallingClient/calling/call.test.js +573 -533
- package/dist/CallingClient/calling/call.test.js.map +1 -1
- package/dist/CallingClient/constants.js +3 -2
- package/dist/CallingClient/constants.js.map +1 -1
- package/dist/CallingClient/line/index.js +19 -2
- package/dist/CallingClient/line/index.js.map +1 -1
- package/dist/CallingClient/line/line.test.js +40 -7
- package/dist/CallingClient/line/line.test.js.map +1 -1
- package/dist/CallingClient/registration/register.js +4 -2
- package/dist/CallingClient/registration/register.js.map +1 -1
- package/dist/CallingClient/registration/register.test.js +10 -2
- package/dist/CallingClient/registration/register.test.js.map +1 -1
- package/dist/CallingClient/types.js.map +1 -1
- package/dist/common/Utils.js +0 -56
- package/dist/common/Utils.js.map +1 -1
- package/dist/common/Utils.test.js +0 -48
- package/dist/common/Utils.test.js.map +1 -1
- package/dist/common/callUtils.js +187 -0
- package/dist/common/callUtils.js.map +1 -0
- package/dist/common/callUtils.test.js +313 -0
- package/dist/common/callUtils.test.js.map +1 -0
- package/dist/common/constants.js +18 -1
- package/dist/common/constants.js.map +1 -1
- package/dist/common/index.js +11 -0
- package/dist/common/index.js.map +1 -1
- package/dist/module/CallingClient/CallingClient.js +1 -1
- package/dist/module/CallingClient/calling/call.js +6 -1
- package/dist/module/CallingClient/constants.js +1 -0
- package/dist/module/CallingClient/line/index.js +7 -1
- package/dist/module/CallingClient/registration/register.js +4 -2
- package/dist/module/common/Utils.js +0 -37
- package/dist/module/common/callUtils.js +90 -0
- package/dist/module/common/constants.js +5 -0
- package/dist/module/common/index.js +1 -0
- package/dist/types/CallingClient/CallingClient.d.ts.map +1 -1
- package/dist/types/CallingClient/calling/call.d.ts.map +1 -1
- package/dist/types/CallingClient/constants.d.ts +1 -0
- package/dist/types/CallingClient/constants.d.ts.map +1 -1
- package/dist/types/CallingClient/line/index.d.ts +2 -1
- package/dist/types/CallingClient/line/index.d.ts.map +1 -1
- package/dist/types/CallingClient/registration/register.d.ts.map +1 -1
- package/dist/types/CallingClient/types.d.ts +2 -0
- package/dist/types/CallingClient/types.d.ts.map +1 -1
- package/dist/types/common/Utils.d.ts +0 -1
- package/dist/types/common/Utils.d.ts.map +1 -1
- package/dist/types/common/callUtils.d.ts +6 -0
- package/dist/types/common/callUtils.d.ts.map +1 -0
- package/dist/types/common/constants.d.ts +5 -0
- package/dist/types/common/constants.d.ts.map +1 -1
- package/dist/types/common/index.d.ts +1 -0
- package/dist/types/common/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -23,6 +23,7 @@ var _register = require("./register");
|
|
|
23
23
|
var _testUtil = require("../../common/testUtil");
|
|
24
24
|
var _types = require("../../common/types");
|
|
25
25
|
var utils = _interopRequireWildcard(require("../../common/Utils"));
|
|
26
|
+
var callUtils = _interopRequireWildcard(require("../../common/callUtils"));
|
|
26
27
|
var _Logger = _interopRequireDefault(require("../../Logger"));
|
|
27
28
|
var _types2 = require("../../Logger/types");
|
|
28
29
|
var _registerFixtures = require("./registerFixtures");
|
|
@@ -70,7 +71,8 @@ describe('Registration Tests', function () {
|
|
|
70
71
|
serviceData: {
|
|
71
72
|
domain: '',
|
|
72
73
|
indicator: 'calling'
|
|
73
|
-
}
|
|
74
|
+
},
|
|
75
|
+
hostIps: []
|
|
74
76
|
}
|
|
75
77
|
});
|
|
76
78
|
var ccMockResponse = _objectSpread(_objectSpread({}, mockResponse), {}, {
|
|
@@ -160,9 +162,12 @@ describe('Registration Tests', function () {
|
|
|
160
162
|
localStorage.clear();
|
|
161
163
|
});
|
|
162
164
|
it('verify successful registration', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
165
|
+
var hostIps;
|
|
163
166
|
return _regenerator.default.wrap(function (_context) {
|
|
164
167
|
while (1) switch (_context.prev = _context.next) {
|
|
165
168
|
case 0:
|
|
169
|
+
hostIps = ['10.0.0.5', '192.168.1.7'];
|
|
170
|
+
jest.spyOn(callUtils, 'getHostIps').mockReturnValueOnce(hostIps);
|
|
166
171
|
webex.request.mockReturnValueOnce({
|
|
167
172
|
body: _registerFixtures.mockPostResponse,
|
|
168
173
|
headers: {
|
|
@@ -173,7 +178,10 @@ describe('Registration Tests', function () {
|
|
|
173
178
|
return reg.triggerRegistration();
|
|
174
179
|
case 1:
|
|
175
180
|
expect(webex.request).toBeCalledOnceWith(_objectSpread(_objectSpread({}, mockResponse), {}, {
|
|
176
|
-
method: 'POST'
|
|
181
|
+
method: 'POST',
|
|
182
|
+
body: _objectSpread(_objectSpread({}, mockResponse.body), {}, {
|
|
183
|
+
hostIps: hostIps
|
|
184
|
+
})
|
|
177
185
|
}));
|
|
178
186
|
expect(reg.getStatus()).toEqual(_types.RegistrationStatus.ACTIVE);
|
|
179
187
|
expect(lineEmitter).toBeCalledTimes(2);
|