@webex/http-core 2.60.1-next.1 → 2.60.1-next.10

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
@@ -28,21 +28,21 @@
28
28
  "@webex/eslint-config-legacy": "0.0.0",
29
29
  "@webex/jest-config-legacy": "0.0.0",
30
30
  "@webex/legacy-tools": "0.0.0",
31
- "@webex/test-helper-chai": "2.60.1-next.1",
32
- "@webex/test-helper-file": "2.60.1-next.1",
33
- "@webex/test-helper-make-local-url": "2.60.1-next.1",
34
- "@webex/test-helper-mocha": "2.60.1-next.1",
35
- "@webex/test-helper-mock-webex": "2.60.1-next.1",
36
- "@webex/test-helper-test-users": "2.60.1-next.1",
31
+ "@webex/test-helper-chai": "2.60.1-next.10",
32
+ "@webex/test-helper-file": "2.60.1-next.10",
33
+ "@webex/test-helper-make-local-url": "2.60.1-next.10",
34
+ "@webex/test-helper-mocha": "2.60.1-next.10",
35
+ "@webex/test-helper-mock-webex": "2.60.1-next.10",
36
+ "@webex/test-helper-test-users": "2.60.1-next.10",
37
37
  "eslint": "^8.24.0",
38
38
  "prettier": "^2.7.1",
39
39
  "sinon": "^9.2.4"
40
40
  },
41
41
  "dependencies": {
42
- "@webex/common": "2.60.1-next.1",
43
- "@webex/internal-plugin-device": "2.60.1-next.1",
44
- "@webex/test-helper-test-users": "2.60.1-next.1",
45
- "@webex/webex-core": "2.60.1-next.1",
42
+ "@webex/common": "2.60.1-next.10",
43
+ "@webex/internal-plugin-device": "2.60.1-next.10",
44
+ "@webex/test-helper-test-users": "2.60.1-next.10",
45
+ "@webex/webex-core": "2.60.1-next.10",
46
46
  "file-type": "^16.0.1",
47
47
  "global": "^4.4.0",
48
48
  "is-function": "^1.0.1",
@@ -63,5 +63,5 @@
63
63
  "test:style": "eslint ./src/**/*.*",
64
64
  "test:unit": "webex-legacy-tools test --unit --runner jest"
65
65
  },
66
- "version": "2.60.1-next.1"
66
+ "version": "2.60.1-next.10"
67
67
  }
@@ -5,6 +5,11 @@ import {EventEmitter} from 'events';
5
5
 
6
6
  describe('Request shim', () => {
7
7
  describe('#setAuth()', () => {
8
+ beforeAll(() => {
9
+ global.Blob = function (content, options) {
10
+ return { content, options };
11
+ };
12
+ });
8
13
  it('sets auth header', () => {
9
14
 
10
15
  class DummyXMLHttpRequest {
@@ -13,7 +18,7 @@ describe('Request shim', () => {
13
18
 
14
19
  window.XMLHttpRequest = DummyXMLHttpRequest;
15
20
 
16
- const options = {upload: new EventEmitter(), headers: [], method: 'post', ...options, auth: {user: 'test', pass: 'pw'}};
21
+ const options = {upload: new EventEmitter(), headers: [], method: 'post', ...options, auth: {user: 'test', pass: 'pw'}, logger: {warn: () => {}}};
17
22
 
18
23
  request(options);
19
24