(href, bool)
| 551 | |
| 552 | describes.sandboxed('isProxyOrigin', {}, () => { |
| 553 | function testProxyOrigin(href, bool) { |
| 554 | it( |
| 555 | 'should return that ' + |
| 556 | href + |
| 557 | (bool ? ' is' : ' is not') + |
| 558 | ' a proxy origin', |
| 559 | () => { |
| 560 | expect(isProxyOrigin(parseUrlDeprecated(href))).to.equal(bool); |
| 561 | } |
| 562 | ); |
| 563 | } |
| 564 | |
| 565 | // CDN |
| 566 | testProxyOrigin('https://cdn.ampproject.org/', true); |
no test coverage detected