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

Method verifyRequestMatch

testing/helpers/service.js:390–393  ·  view source on GitHub ↗
(regex)

Source from the content-addressed store, hash-verified

388 }
389
390 verifyRequestMatch(regex) {
391 const pixel = this.imagePixels_.shift();
392 expect(pixel.src).to.match(regex);
393 }
394
395 getLastRequestUrl() {
396 if (!this.hasRequestSent()) {

Callers 1

Calls 1

expectFunction · 0.85

Tested by

no test coverage detected