(req: HttpRequest<unknown>, tag: string)
| 655 | } |
| 656 | |
| 657 | function addTagToRequest(req: HttpRequest<unknown>, tag: string): HttpRequest<unknown> { |
| 658 | const prevTagHeader = req.headers.get('X-Tag') ?? ''; |
| 659 | const tagHeader = prevTagHeader.length > 0 ? prevTagHeader + ',' + tag : tag; |
| 660 | |
| 661 | return req.clone({ |
| 662 | setHeaders: { |
| 663 | 'X-Tag': tagHeader, |
| 664 | }, |
| 665 | }); |
| 666 | } |
| 667 | |
| 668 | const FAKE_JSONP_BACKEND_PROVIDER = { |
| 669 | provide: JsonpClientBackend, |
no test coverage detected
searching dependent graphs…