(config, tagName = 'amp-ad', parent = doc.body)
| 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 = [ |
no test coverage detected