MCPcopy Create free account
hub / github.com/ampproject/amphtml / verifyRequest

Method verifyRequest

testing/helpers/service.js:383–388  ·  view source on GitHub ↗
(url, referrerPolicy, attributionSrc)

Source from the content-addressed store, hash-verified

381 }
382
383 verifyRequest(url, referrerPolicy, attributionSrc) {
384 const pixel = this.imagePixels_.shift();
385 expect(pixel.src).to.equal(url);
386 expect(pixel.referrerPolicy).to.equal(referrerPolicy);
387 expect(pixel.attributionSrc).to.equal(attributionSrc);
388 }
389
390 verifyRequestMatch(regex) {
391 const pixel = this.imagePixels_.shift();

Callers 2

expectImagePixelFunction · 0.80

Calls 1

expectFunction · 0.85

Tested by

no test coverage detected