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

Function get

test/unit/test-integration.js:224–230  ·  view source on GitHub ↗
(domain)

Source from the content-addressed store, hash-verified

222
223 it('should allow all types on unique default host', () => {
224 function get(domain) {
225 return {
226 location: {
227 hostname: domain,
228 },
229 };
230 }
231 validateAllowedTypes(get('d-123.ampproject.net'), 'twitter');
232 validateAllowedTypes(get('d-46851196780996873.ampproject.net'), 'adtech');
233 validateAllowedTypes(get('d-46851196780996873.ampproject.net'), 'a9');

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected