MCPcopy
hub / github.com/ampproject/amphtml / testProxyOrigin

Function testProxyOrigin

test/unit/test-url.js:553–563  ·  view source on GitHub ↗
(href, bool)

Source from the content-addressed store, hash-verified

551
552describes.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);

Callers 1

test-url.jsFile · 0.85

Calls 4

isProxyOriginFunction · 0.90
parseUrlDeprecatedFunction · 0.90
expectFunction · 0.85
itFunction · 0.50

Tested by

no test coverage detected