@alterior/http 3.13.3 → 3.13.4
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/backend.d.ts +38 -38
- package/dist/backend.js +38 -38
- package/dist/client.d.ts +2108 -2108
- package/dist/client.js +265 -265
- package/dist/client.js.map +1 -1
- package/dist/headers.d.ts +57 -57
- package/dist/headers.js +187 -187
- package/dist/headers.js.map +1 -1
- package/dist/index.d.ts +18 -18
- package/dist/index.js +42 -42
- package/dist/interceptor.d.ts +63 -63
- package/dist/interceptor.js +43 -43
- package/dist/interceptor.js.map +1 -1
- package/dist/module.d.ts +101 -101
- package/dist/module.js +188 -188
- package/dist/module.js.map +1 -1
- package/dist/params.d.ts +98 -98
- package/dist/params.js +184 -184
- package/dist/params.js.map +1 -1
- package/dist/request.d.ts +130 -130
- package/dist/request.js +260 -260
- package/dist/request.js.map +1 -1
- package/dist/response.d.ts +267 -267
- package/dist/response.js +165 -165
- package/dist/response.js.map +1 -1
- package/dist/server.d.ts +28 -28
- package/dist/server.js +119 -119
- package/dist/server.js.map +1 -1
- package/dist/test/client.test.d.ts +8 -8
- package/dist/test/client.test.js +163 -163
- package/dist/test/client.test.js.map +1 -1
- package/dist/test/headers.test.d.ts +1 -1
- package/dist/test/headers.test.js +126 -126
- package/dist/test/module.test.d.ts +1 -1
- package/dist/test/module.test.js +117 -117
- package/dist/test/module.test.js.map +1 -1
- package/dist/test/params.test.d.ts +1 -1
- package/dist/test/params.test.js +63 -63
- package/dist/test/request.test.d.ts +8 -8
- package/dist/test/request.test.js +159 -159
- package/dist/test/request.test.js.map +1 -1
- package/dist/test/response.test.d.ts +1 -1
- package/dist/test/response.test.js +79 -79
- package/dist/test/response.test.js.map +1 -1
- package/dist/test/test.d.ts +1 -1
- package/dist/test/test.js +16 -16
- package/dist/test/xhr.mock.d.ts +48 -48
- package/dist/test/xhr.mock.js +94 -94
- package/dist/test/xhr.mock.js.map +1 -1
- package/dist/test/xhr.test.d.ts +1 -1
- package/dist/test/xhr.test.js +344 -344
- package/dist/test/xhr.test.js.map +1 -1
- package/dist/test/xsrf.test.d.ts +1 -1
- package/dist/test/xsrf.test.js +63 -63
- package/dist/test/xsrf.test.js.map +1 -1
- package/dist/testing/api.d.ts +102 -102
- package/dist/testing/api.js +19 -19
- package/dist/testing/backend.d.ts +63 -63
- package/dist/testing/backend.js +141 -141
- package/dist/testing/backend.js.map +1 -1
- package/dist/testing/index.d.ts +10 -10
- package/dist/testing/index.js +16 -16
- package/dist/testing/module.d.ts +16 -16
- package/dist/testing/module.js +38 -38
- package/dist/testing/module.js.map +1 -1
- package/dist/testing/request.d.ts +56 -56
- package/dist/testing/request.js +177 -177
- package/dist/testing/request.js.map +1 -1
- package/dist/testing/request.test.d.ts +8 -8
- package/dist/testing/request.test.js +24 -24
- package/dist/xhr.d.ts +42 -42
- package/dist/xhr.js +298 -298
- package/dist/xhr.js.map +1 -1
- package/dist/xsrf.d.ts +37 -37
- package/dist/xsrf.js +55 -55
- package/dist/xsrf.js.map +1 -1
- package/dist.esm/backend.d.ts +38 -38
- package/dist.esm/backend.js +33 -33
- package/dist.esm/client.d.ts +2108 -2108
- package/dist.esm/client.js +262 -262
- package/dist.esm/client.js.map +1 -1
- package/dist.esm/headers.d.ts +57 -57
- package/dist.esm/headers.js +183 -183
- package/dist.esm/headers.js.map +1 -1
- package/dist.esm/index.d.ts +18 -18
- package/dist.esm/index.js +18 -18
- package/dist.esm/interceptor.d.ts +63 -63
- package/dist.esm/interceptor.js +39 -39
- package/dist.esm/interceptor.js.map +1 -1
- package/dist.esm/module.d.ts +101 -101
- package/dist.esm/module.js +183 -183
- package/dist.esm/module.js.map +1 -1
- package/dist.esm/params.d.ts +98 -98
- package/dist.esm/params.js +179 -179
- package/dist.esm/params.js.map +1 -1
- package/dist.esm/request.d.ts +130 -130
- package/dist.esm/request.js +256 -256
- package/dist.esm/request.js.map +1 -1
- package/dist.esm/response.d.ts +267 -267
- package/dist.esm/response.js +158 -158
- package/dist.esm/response.js.map +1 -1
- package/dist.esm/server.d.ts +28 -28
- package/dist.esm/server.js +113 -113
- package/dist.esm/server.js.map +1 -1
- package/dist.esm/test/client.test.d.ts +8 -8
- package/dist.esm/test/client.test.js +161 -161
- package/dist.esm/test/client.test.js.map +1 -1
- package/dist.esm/test/headers.test.d.ts +1 -1
- package/dist.esm/test/headers.test.js +124 -124
- package/dist.esm/test/module.test.d.ts +1 -1
- package/dist.esm/test/module.test.js +115 -115
- package/dist.esm/test/module.test.js.map +1 -1
- package/dist.esm/test/params.test.d.ts +1 -1
- package/dist.esm/test/params.test.js +61 -61
- package/dist.esm/test/request.test.d.ts +8 -8
- package/dist.esm/test/request.test.js +157 -157
- package/dist.esm/test/request.test.js.map +1 -1
- package/dist.esm/test/response.test.d.ts +1 -1
- package/dist.esm/test/response.test.js +77 -77
- package/dist.esm/test/response.test.js.map +1 -1
- package/dist.esm/test/test.d.ts +1 -1
- package/dist.esm/test/test.js +14 -14
- package/dist.esm/test/xhr.mock.d.ts +48 -48
- package/dist.esm/test/xhr.mock.js +88 -88
- package/dist.esm/test/xhr.mock.js.map +1 -1
- package/dist.esm/test/xhr.test.d.ts +1 -1
- package/dist.esm/test/xhr.test.js +342 -342
- package/dist.esm/test/xhr.test.js.map +1 -1
- package/dist.esm/test/xsrf.test.d.ts +1 -1
- package/dist.esm/test/xsrf.test.js +61 -61
- package/dist.esm/test/xsrf.test.js.map +1 -1
- package/dist.esm/testing/api.d.ts +102 -102
- package/dist.esm/testing/api.js +15 -15
- package/dist.esm/testing/backend.d.ts +63 -63
- package/dist.esm/testing/backend.js +138 -138
- package/dist.esm/testing/backend.js.map +1 -1
- package/dist.esm/testing/index.d.ts +10 -10
- package/dist.esm/testing/index.js +10 -10
- package/dist.esm/testing/module.d.ts +16 -16
- package/dist.esm/testing/module.js +35 -35
- package/dist.esm/testing/module.js.map +1 -1
- package/dist.esm/testing/request.d.ts +56 -56
- package/dist.esm/testing/request.js +173 -173
- package/dist.esm/testing/request.js.map +1 -1
- package/dist.esm/testing/request.test.d.ts +8 -8
- package/dist.esm/testing/request.test.js +22 -22
- package/dist.esm/xhr.d.ts +42 -42
- package/dist.esm/xhr.js +294 -294
- package/dist.esm/xhr.js.map +1 -1
- package/dist.esm/xsrf.d.ts +37 -37
- package/dist.esm/xsrf.js +51 -51
- package/dist.esm/xsrf.js.map +1 -1
- package/package.json +9 -9
- package/tsconfig.esm.tsbuildinfo +1 -0
- package/tsconfig.json +0 -2
- package/tsconfig.tsbuildinfo +1 -8046
|
@@ -1,139 +1,139 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google Inc. All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { __decorate } from "tslib";
|
|
9
|
-
import { HttpEventType } from '../response';
|
|
10
|
-
import { Injectable } from '@alterior/di';
|
|
11
|
-
import { Observable } from 'rxjs';
|
|
12
|
-
import { TestRequest } from './request';
|
|
13
|
-
/**
|
|
14
|
-
* A testing backend for `HttpClient` which both acts as an `HttpBackend`
|
|
15
|
-
* and as the `HttpTestingController`.
|
|
16
|
-
*
|
|
17
|
-
* `HttpClientTestingBackend` works by keeping a list of all open requests.
|
|
18
|
-
* As requests come in, they're added to the list. Users can assert that specific
|
|
19
|
-
* requests were made and then flush them. In the end, a verify() method asserts
|
|
20
|
-
* that no unexpected requests were made.
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
let HttpClientTestingBackend = class HttpClientTestingBackend {
|
|
25
|
-
constructor() {
|
|
26
|
-
/**
|
|
27
|
-
* List of pending requests which have not yet been expected.
|
|
28
|
-
*/
|
|
29
|
-
this.open = [];
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Handle an incoming request by queueing it in the list of open requests.
|
|
33
|
-
*/
|
|
34
|
-
handle(req) {
|
|
35
|
-
return new Observable((observer) => {
|
|
36
|
-
const testReq = new TestRequest(req, observer);
|
|
37
|
-
this.open.push(testReq);
|
|
38
|
-
observer.next({ type: HttpEventType.Sent });
|
|
39
|
-
return () => { testReq._cancelled = true; };
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Helper function to search for requests in the list of open requests.
|
|
44
|
-
*/
|
|
45
|
-
_match(match) {
|
|
46
|
-
if (typeof match === 'string') {
|
|
47
|
-
return this.open.filter(testReq => testReq.request.urlWithParams === match);
|
|
48
|
-
}
|
|
49
|
-
else if (typeof match === 'function') {
|
|
50
|
-
return this.open.filter(testReq => match(testReq.request));
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
return this.open.filter(testReq => (!match.method || testReq.request.method === match.method.toUpperCase()) &&
|
|
54
|
-
(!match.url || testReq.request.urlWithParams === match.url));
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Search for requests in the list of open requests, and return all that match
|
|
59
|
-
* without asserting anything about the number of matches.
|
|
60
|
-
*/
|
|
61
|
-
match(match) {
|
|
62
|
-
const results = this._match(match);
|
|
63
|
-
results.forEach(result => {
|
|
64
|
-
const index = this.open.indexOf(result);
|
|
65
|
-
if (index !== -1) {
|
|
66
|
-
this.open.splice(index, 1);
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
return results;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Expect that a single outstanding request matches the given matcher, and return
|
|
73
|
-
* it.
|
|
74
|
-
*
|
|
75
|
-
* Requests returned through this API will no longer be in the list of open requests,
|
|
76
|
-
* and thus will not match twice.
|
|
77
|
-
*/
|
|
78
|
-
expectOne(match, description) {
|
|
79
|
-
description = description || this.descriptionFromMatcher(match);
|
|
80
|
-
const matches = this.match(match);
|
|
81
|
-
if (matches.length > 1) {
|
|
82
|
-
throw new Error(`Expected one matching request for criteria "${description}", found ${matches.length} requests.`);
|
|
83
|
-
}
|
|
84
|
-
if (matches.length === 0) {
|
|
85
|
-
throw new Error(`Expected one matching request for criteria "${description}", found none.`);
|
|
86
|
-
}
|
|
87
|
-
return matches[0];
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Expect that no outstanding requests match the given matcher, and throw an error
|
|
91
|
-
* if any do.
|
|
92
|
-
*/
|
|
93
|
-
expectNone(match, description) {
|
|
94
|
-
description = description || this.descriptionFromMatcher(match);
|
|
95
|
-
const matches = this.match(match);
|
|
96
|
-
if (matches.length > 0) {
|
|
97
|
-
throw new Error(`Expected zero matching requests for criteria "${description}", found ${matches.length}.`);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Validate that there are no outstanding requests.
|
|
102
|
-
*/
|
|
103
|
-
verify(opts = {}) {
|
|
104
|
-
let open = this.open;
|
|
105
|
-
// It's possible that some requests may be cancelled, and this is expected.
|
|
106
|
-
// The user can ask to ignore open requests which have been cancelled.
|
|
107
|
-
if (opts.ignoreCancelled) {
|
|
108
|
-
open = open.filter(testReq => !testReq.cancelled);
|
|
109
|
-
}
|
|
110
|
-
if (open.length > 0) {
|
|
111
|
-
// Show the methods and URLs of open requests in the error, for convenience.
|
|
112
|
-
const requests = open.map(testReq => {
|
|
113
|
-
const url = testReq.request.urlWithParams.split('?')[0];
|
|
114
|
-
const method = testReq.request.method;
|
|
115
|
-
return `${method} ${url}`;
|
|
116
|
-
})
|
|
117
|
-
.join(', ');
|
|
118
|
-
throw new Error(`Expected no open requests, found ${open.length}: ${requests}`);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
descriptionFromMatcher(matcher) {
|
|
122
|
-
if (typeof matcher === 'string') {
|
|
123
|
-
return `Match URL: ${matcher}`;
|
|
124
|
-
}
|
|
125
|
-
else if (typeof matcher === 'object') {
|
|
126
|
-
const method = matcher.method || '(any)';
|
|
127
|
-
const url = matcher.url || '(any)';
|
|
128
|
-
return `Match method: ${method}, URL: ${url}`;
|
|
129
|
-
}
|
|
130
|
-
else {
|
|
131
|
-
return `Match by function: ${matcher.name}`;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
HttpClientTestingBackend = __decorate([
|
|
136
|
-
Injectable()
|
|
137
|
-
], HttpClientTestingBackend);
|
|
138
|
-
export { HttpClientTestingBackend };
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
import { __decorate } from "tslib";
|
|
9
|
+
import { HttpEventType } from '../response';
|
|
10
|
+
import { Injectable } from '@alterior/di';
|
|
11
|
+
import { Observable } from 'rxjs';
|
|
12
|
+
import { TestRequest } from './request';
|
|
13
|
+
/**
|
|
14
|
+
* A testing backend for `HttpClient` which both acts as an `HttpBackend`
|
|
15
|
+
* and as the `HttpTestingController`.
|
|
16
|
+
*
|
|
17
|
+
* `HttpClientTestingBackend` works by keeping a list of all open requests.
|
|
18
|
+
* As requests come in, they're added to the list. Users can assert that specific
|
|
19
|
+
* requests were made and then flush them. In the end, a verify() method asserts
|
|
20
|
+
* that no unexpected requests were made.
|
|
21
|
+
*
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
let HttpClientTestingBackend = class HttpClientTestingBackend {
|
|
25
|
+
constructor() {
|
|
26
|
+
/**
|
|
27
|
+
* List of pending requests which have not yet been expected.
|
|
28
|
+
*/
|
|
29
|
+
this.open = [];
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Handle an incoming request by queueing it in the list of open requests.
|
|
33
|
+
*/
|
|
34
|
+
handle(req) {
|
|
35
|
+
return new Observable((observer) => {
|
|
36
|
+
const testReq = new TestRequest(req, observer);
|
|
37
|
+
this.open.push(testReq);
|
|
38
|
+
observer.next({ type: HttpEventType.Sent });
|
|
39
|
+
return () => { testReq._cancelled = true; };
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Helper function to search for requests in the list of open requests.
|
|
44
|
+
*/
|
|
45
|
+
_match(match) {
|
|
46
|
+
if (typeof match === 'string') {
|
|
47
|
+
return this.open.filter(testReq => testReq.request.urlWithParams === match);
|
|
48
|
+
}
|
|
49
|
+
else if (typeof match === 'function') {
|
|
50
|
+
return this.open.filter(testReq => match(testReq.request));
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
return this.open.filter(testReq => (!match.method || testReq.request.method === match.method.toUpperCase()) &&
|
|
54
|
+
(!match.url || testReq.request.urlWithParams === match.url));
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Search for requests in the list of open requests, and return all that match
|
|
59
|
+
* without asserting anything about the number of matches.
|
|
60
|
+
*/
|
|
61
|
+
match(match) {
|
|
62
|
+
const results = this._match(match);
|
|
63
|
+
results.forEach(result => {
|
|
64
|
+
const index = this.open.indexOf(result);
|
|
65
|
+
if (index !== -1) {
|
|
66
|
+
this.open.splice(index, 1);
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
return results;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Expect that a single outstanding request matches the given matcher, and return
|
|
73
|
+
* it.
|
|
74
|
+
*
|
|
75
|
+
* Requests returned through this API will no longer be in the list of open requests,
|
|
76
|
+
* and thus will not match twice.
|
|
77
|
+
*/
|
|
78
|
+
expectOne(match, description) {
|
|
79
|
+
description = description || this.descriptionFromMatcher(match);
|
|
80
|
+
const matches = this.match(match);
|
|
81
|
+
if (matches.length > 1) {
|
|
82
|
+
throw new Error(`Expected one matching request for criteria "${description}", found ${matches.length} requests.`);
|
|
83
|
+
}
|
|
84
|
+
if (matches.length === 0) {
|
|
85
|
+
throw new Error(`Expected one matching request for criteria "${description}", found none.`);
|
|
86
|
+
}
|
|
87
|
+
return matches[0];
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Expect that no outstanding requests match the given matcher, and throw an error
|
|
91
|
+
* if any do.
|
|
92
|
+
*/
|
|
93
|
+
expectNone(match, description) {
|
|
94
|
+
description = description || this.descriptionFromMatcher(match);
|
|
95
|
+
const matches = this.match(match);
|
|
96
|
+
if (matches.length > 0) {
|
|
97
|
+
throw new Error(`Expected zero matching requests for criteria "${description}", found ${matches.length}.`);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Validate that there are no outstanding requests.
|
|
102
|
+
*/
|
|
103
|
+
verify(opts = {}) {
|
|
104
|
+
let open = this.open;
|
|
105
|
+
// It's possible that some requests may be cancelled, and this is expected.
|
|
106
|
+
// The user can ask to ignore open requests which have been cancelled.
|
|
107
|
+
if (opts.ignoreCancelled) {
|
|
108
|
+
open = open.filter(testReq => !testReq.cancelled);
|
|
109
|
+
}
|
|
110
|
+
if (open.length > 0) {
|
|
111
|
+
// Show the methods and URLs of open requests in the error, for convenience.
|
|
112
|
+
const requests = open.map(testReq => {
|
|
113
|
+
const url = testReq.request.urlWithParams.split('?')[0];
|
|
114
|
+
const method = testReq.request.method;
|
|
115
|
+
return `${method} ${url}`;
|
|
116
|
+
})
|
|
117
|
+
.join(', ');
|
|
118
|
+
throw new Error(`Expected no open requests, found ${open.length}: ${requests}`);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
descriptionFromMatcher(matcher) {
|
|
122
|
+
if (typeof matcher === 'string') {
|
|
123
|
+
return `Match URL: ${matcher}`;
|
|
124
|
+
}
|
|
125
|
+
else if (typeof matcher === 'object') {
|
|
126
|
+
const method = matcher.method || '(any)';
|
|
127
|
+
const url = matcher.url || '(any)';
|
|
128
|
+
return `Match method: ${method}, URL: ${url}`;
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
return `Match by function: ${matcher.name}`;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
HttpClientTestingBackend = __decorate([
|
|
136
|
+
Injectable()
|
|
137
|
+
], HttpClientTestingBackend);
|
|
138
|
+
export { HttpClientTestingBackend };
|
|
139
139
|
//# sourceMappingURL=backend.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backend.js","sourceRoot":"","sources":["../../src/testing/backend.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EAAY,aAAa,EAAC,MAAM,aAAa,CAAC;AAGrD,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,UAAU,EAAW,MAAM,MAAM,CAAC;AAG1C,OAAO,EAAC,WAAW,EAAC,MAAM,WAAW,CAAC;AAGtC;;;;;;;;;;GAUG;AAEI,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IAA9B;QACL;;WAEG;QACK,SAAI,GAAkB,EAAE,CAAC;IAiHnC,CAAC;IA/GC;;OAEG;IACH,MAAM,CAAC,GAAqB;QAC1B,OAAO,IAAI,UAAU,CAAC,CAAC,QAAuB,EAAE,EAAE;YAChD,MAAM,OAAO,GAAG,IAAI,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;YAC/C,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACxB,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,aAAa,CAAC,IAAI,EAAoB,CAAC,CAAC;YAC9D,OAAO,GAAG,EAAE,GAAG,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QAC9C,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACK,MAAM,CAAC,KAA+D;QAC5E,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;
|
|
1
|
+
{"version":3,"file":"backend.js","sourceRoot":"","sources":["../../src/testing/backend.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EAAY,aAAa,EAAC,MAAM,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C,CAAC;aAAM,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;YACvC,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC;YACzC,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC;YACnC,OAAO,iBAAiB,MAAM,UAAU,GAAG,EAAE,CAAC;QAChD,CAAC;aAAM,CAAC;YACN,OAAO,sBAAsB,OAAO,CAAC,IAAI,EAAE,CAAC;QAC9C,CAAC;IACH,CAAC;CACF,CAAA;AArHY,wBAAwB;IADpC,UAAU,EAAE;GACA,wBAAwB,CAqHpC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google Inc. All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
export { HttpTestingController, RequestMatch } from './api';
|
|
9
|
-
export { HttpClientTestingModule } from './module';
|
|
10
|
-
export { TestRequest } from './request';
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
export { HttpTestingController, RequestMatch } from './api';
|
|
9
|
+
export { HttpClientTestingModule } from './module';
|
|
10
|
+
export { TestRequest } from './request';
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google Inc. All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
export { HttpTestingController } from './api';
|
|
9
|
-
export { HttpClientTestingModule } from './module';
|
|
10
|
-
export { TestRequest } from './request';
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
export { HttpTestingController } from './api';
|
|
9
|
+
export { HttpClientTestingModule } from './module';
|
|
10
|
+
export { TestRequest } from './request';
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google Inc. All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* Configures `HttpClientTestingBackend` as the `HttpBackend` used by `HttpClient`.
|
|
10
|
-
*
|
|
11
|
-
* Inject `HttpTestingController` to expect and flush requests in your tests.
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
export declare class HttpClientTestingModule {
|
|
16
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Configures `HttpClientTestingBackend` as the `HttpBackend` used by `HttpClient`.
|
|
10
|
+
*
|
|
11
|
+
* Inject `HttpTestingController` to expect and flush requests in your tests.
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
export declare class HttpClientTestingModule {
|
|
16
|
+
}
|
|
17
17
|
//# sourceMappingURL=module.d.ts.map
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google Inc. All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { __decorate } from "tslib";
|
|
9
|
-
import { HttpBackend } from '../backend';
|
|
10
|
-
import { HttpClientModule } from '../module';
|
|
11
|
-
import { Module } from '@alterior/di';
|
|
12
|
-
import { HttpTestingController } from './api';
|
|
13
|
-
import { HttpClientTestingBackend } from './backend';
|
|
14
|
-
/**
|
|
15
|
-
* Configures `HttpClientTestingBackend` as the `HttpBackend` used by `HttpClient`.
|
|
16
|
-
*
|
|
17
|
-
* Inject `HttpTestingController` to expect and flush requests in your tests.
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*/
|
|
21
|
-
let HttpClientTestingModule = class HttpClientTestingModule {
|
|
22
|
-
};
|
|
23
|
-
HttpClientTestingModule = __decorate([
|
|
24
|
-
Module({
|
|
25
|
-
imports: [
|
|
26
|
-
HttpClientModule,
|
|
27
|
-
],
|
|
28
|
-
providers: [
|
|
29
|
-
HttpClientTestingBackend,
|
|
30
|
-
{ provide: HttpBackend, useExisting: HttpClientTestingBackend },
|
|
31
|
-
{ provide: HttpTestingController, useExisting: HttpClientTestingBackend },
|
|
32
|
-
],
|
|
33
|
-
})
|
|
34
|
-
], HttpClientTestingModule);
|
|
35
|
-
export { HttpClientTestingModule };
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
import { __decorate } from "tslib";
|
|
9
|
+
import { HttpBackend } from '../backend';
|
|
10
|
+
import { HttpClientModule } from '../module';
|
|
11
|
+
import { Module } from '@alterior/di';
|
|
12
|
+
import { HttpTestingController } from './api';
|
|
13
|
+
import { HttpClientTestingBackend } from './backend';
|
|
14
|
+
/**
|
|
15
|
+
* Configures `HttpClientTestingBackend` as the `HttpBackend` used by `HttpClient`.
|
|
16
|
+
*
|
|
17
|
+
* Inject `HttpTestingController` to expect and flush requests in your tests.
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
let HttpClientTestingModule = class HttpClientTestingModule {
|
|
22
|
+
};
|
|
23
|
+
HttpClientTestingModule = __decorate([
|
|
24
|
+
Module({
|
|
25
|
+
imports: [
|
|
26
|
+
HttpClientModule,
|
|
27
|
+
],
|
|
28
|
+
providers: [
|
|
29
|
+
HttpClientTestingBackend,
|
|
30
|
+
{ provide: HttpBackend, useExisting: HttpClientTestingBackend },
|
|
31
|
+
{ provide: HttpTestingController, useExisting: HttpClientTestingBackend },
|
|
32
|
+
],
|
|
33
|
+
})
|
|
34
|
+
], HttpClientTestingModule);
|
|
35
|
+
export { HttpClientTestingModule };
|
|
36
36
|
//# sourceMappingURL=module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/testing/module.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EAAC,WAAW,EAAC,MAAM,YAAY,CAAC;AACvC,OAAO,EAAC,gBAAgB,EAAC,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAC,MAAM,EAAC,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAC,qBAAqB,EAAC,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAC,wBAAwB,EAAC,MAAM,WAAW,CAAC;AAGnD;;;;;;GAMG;AAWI,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;CACnC,CAAA;AADY,uBAAuB;IAVnC,MAAM,CAAC;QACN,OAAO,EAAE;YACP,gBAAgB;SACjB;QACD,SAAS,EAAE;YACT,wBAAwB;YACxB,EAAC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,wBAAwB,EAAC;YAC7D,EAAC,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,wBAAwB,EAAC;SACxE;KACF,CAAC;GACW,uBAAuB,CACnC
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/testing/module.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EAAC,WAAW,EAAC,MAAM,YAAY,CAAC;AACvC,OAAO,EAAC,gBAAgB,EAAC,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAC,MAAM,EAAC,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAC,qBAAqB,EAAC,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAC,wBAAwB,EAAC,MAAM,WAAW,CAAC;AAGnD;;;;;;GAMG;AAWI,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;CACnC,CAAA;AADY,uBAAuB;IAVnC,MAAM,CAAC;QACN,OAAO,EAAE;YACP,gBAAgB;SACjB;QACD,SAAS,EAAE;YACT,wBAAwB;YACxB,EAAC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,wBAAwB,EAAC;YAC7D,EAAC,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,wBAAwB,EAAC;SACxE;KACF,CAAC;GACW,uBAAuB,CACnC"}
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google Inc. All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { Observer } from 'rxjs';
|
|
9
|
-
import { HttpRequest } from '../request';
|
|
10
|
-
import { HttpEvent } from '../response';
|
|
11
|
-
import { HttpHeaders } from '../headers';
|
|
12
|
-
/**
|
|
13
|
-
* A mock requests that was received and is ready to be answered.
|
|
14
|
-
*
|
|
15
|
-
* This interface allows access to the underlying `HttpRequest`, and allows
|
|
16
|
-
* responding with `HttpEvent`s or `HttpErrorResponse`s.
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
export declare class TestRequest {
|
|
21
|
-
request: HttpRequest<any>;
|
|
22
|
-
private observer;
|
|
23
|
-
/**
|
|
24
|
-
* Whether the request was cancelled after it was sent.
|
|
25
|
-
*/
|
|
26
|
-
get cancelled(): boolean;
|
|
27
|
-
constructor(request: HttpRequest<any>, observer: Observer<HttpEvent<any>>);
|
|
28
|
-
/**
|
|
29
|
-
* Resolve the request by returning a body plus additional HTTP information (such as response
|
|
30
|
-
* headers) if provided.
|
|
31
|
-
*
|
|
32
|
-
* Both successful and unsuccessful responses can be delivered via `flush()`.
|
|
33
|
-
*/
|
|
34
|
-
flush(body: ArrayBuffer | Blob | string | number | Object | (string | number | Object | null)[] | null, opts?: {
|
|
35
|
-
headers?: HttpHeaders | {
|
|
36
|
-
[name: string]: string | string[];
|
|
37
|
-
};
|
|
38
|
-
status?: number;
|
|
39
|
-
statusText?: string;
|
|
40
|
-
}): void;
|
|
41
|
-
/**
|
|
42
|
-
* Resolve the request by returning an `ErrorEvent` (e.g. simulating a network failure).
|
|
43
|
-
*/
|
|
44
|
-
error(error: ErrorEvent, opts?: {
|
|
45
|
-
headers?: HttpHeaders | {
|
|
46
|
-
[name: string]: string | string[];
|
|
47
|
-
};
|
|
48
|
-
status?: number;
|
|
49
|
-
statusText?: string;
|
|
50
|
-
}): void;
|
|
51
|
-
/**
|
|
52
|
-
* Deliver an arbitrary `HttpEvent` (such as a progress event) on the response stream for this
|
|
53
|
-
* request.
|
|
54
|
-
*/
|
|
55
|
-
event(event: HttpEvent<any>): void;
|
|
56
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
import { Observer } from 'rxjs';
|
|
9
|
+
import { HttpRequest } from '../request';
|
|
10
|
+
import { HttpEvent } from '../response';
|
|
11
|
+
import { HttpHeaders } from '../headers';
|
|
12
|
+
/**
|
|
13
|
+
* A mock requests that was received and is ready to be answered.
|
|
14
|
+
*
|
|
15
|
+
* This interface allows access to the underlying `HttpRequest`, and allows
|
|
16
|
+
* responding with `HttpEvent`s or `HttpErrorResponse`s.
|
|
17
|
+
*
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export declare class TestRequest {
|
|
21
|
+
request: HttpRequest<any>;
|
|
22
|
+
private observer;
|
|
23
|
+
/**
|
|
24
|
+
* Whether the request was cancelled after it was sent.
|
|
25
|
+
*/
|
|
26
|
+
get cancelled(): boolean;
|
|
27
|
+
constructor(request: HttpRequest<any>, observer: Observer<HttpEvent<any>>);
|
|
28
|
+
/**
|
|
29
|
+
* Resolve the request by returning a body plus additional HTTP information (such as response
|
|
30
|
+
* headers) if provided.
|
|
31
|
+
*
|
|
32
|
+
* Both successful and unsuccessful responses can be delivered via `flush()`.
|
|
33
|
+
*/
|
|
34
|
+
flush(body: ArrayBuffer | Blob | string | number | Object | (string | number | Object | null)[] | null, opts?: {
|
|
35
|
+
headers?: HttpHeaders | {
|
|
36
|
+
[name: string]: string | string[];
|
|
37
|
+
};
|
|
38
|
+
status?: number;
|
|
39
|
+
statusText?: string;
|
|
40
|
+
}): void;
|
|
41
|
+
/**
|
|
42
|
+
* Resolve the request by returning an `ErrorEvent` (e.g. simulating a network failure).
|
|
43
|
+
*/
|
|
44
|
+
error(error: ErrorEvent, opts?: {
|
|
45
|
+
headers?: HttpHeaders | {
|
|
46
|
+
[name: string]: string | string[];
|
|
47
|
+
};
|
|
48
|
+
status?: number;
|
|
49
|
+
statusText?: string;
|
|
50
|
+
}): void;
|
|
51
|
+
/**
|
|
52
|
+
* Deliver an arbitrary `HttpEvent` (such as a progress event) on the response stream for this
|
|
53
|
+
* request.
|
|
54
|
+
*/
|
|
55
|
+
event(event: HttpEvent<any>): void;
|
|
56
|
+
}
|
|
57
57
|
//# sourceMappingURL=request.d.ts.map
|