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

Function testOrigin

test/unit/test-url.js:653–660  ·  view source on GitHub ↗
(href, sourceHref)

Source from the content-addressed store, hash-verified

651
652describes.sandboxed('getSourceOrigin/Url', {}, () => {
653 function testOrigin(href, sourceHref) {
654 it('should return the source origin/url from ' + href, () => {
655 expect(getSourceUrl(href)).to.equal(sourceHref);
656 expect(getSourceOrigin(href)).to.equal(
657 parseUrlDeprecated(sourceHref).origin
658 );
659 });
660 }
661
662 // CDN.
663 testOrigin(

Callers 1

test-url.jsFile · 0.85

Calls 5

getSourceUrlFunction · 0.90
getSourceOriginFunction · 0.90
parseUrlDeprecatedFunction · 0.90
expectFunction · 0.85
itFunction · 0.50

Tested by

no test coverage detected