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

Function invalid

test/unit/test-integration.js:288–290  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

286 },
287 };
288 function invalid(fn) {
289 expect(fn).to.throw(/Invalid embedding hostname/);
290 }
291 validateAllowedEmbeddingOrigins(win, ['foo.com']);
292 validateAllowedEmbeddingOrigins(win, ['foo.net', 'foo.com']);
293 validateAllowedEmbeddingOrigins(win, ['www.foo.com']);

Callers 1

Calls 1

expectFunction · 0.85

Tested by

no test coverage detected