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

Function createResource

ads/google/a4a/test/test-utils.js:974–979  ·  view source on GitHub ↗
(config, tagName = 'amp-ad', parent = doc.body)

Source from the content-addressed store, hash-verified

972 });
973
974 function createResource(config, tagName = 'amp-ad', parent = doc.body) {
975 const element = createElementWithAttributes(doc, tagName, config);
976 parent.appendChild(element);
977 element.getImpl = () => Promise.resolve({element});
978 return {element};
979 }
980
981 it('should find amp-ad of only given type', () => {
982 const resources = [

Callers 1

test-utils.jsFile · 0.70

Calls 2

resolveMethod · 0.80

Tested by

no test coverage detected