Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
test-amp-analytics.js
File · 0.80
Calls
1
expect
Function · 0.85
Tested by
no test coverage detected