(options = {})
| 52 | }); |
| 53 | |
| 54 | function createAmpElement(options = {}) { |
| 55 | const element = createElementWithAttributes(doc, 'amp-el', { |
| 56 | id: options.id || '', |
| 57 | }); |
| 58 | element.deferredMount = () => options.deferredMount || false; |
| 59 | element.prerenderAllowed = () => options.prerenderAllowed || false; |
| 60 | element.previewAllowed = () => options.previewAllowed || false; |
| 61 | element.getBuildPriority = () => |
| 62 | options.buildPriority || LayoutPriority_Enum.CONTENT; |
| 63 | element.mountInternal = env.sandbox.stub(); |
| 64 | return element; |
| 65 | } |
| 66 | |
| 67 | describe('schedule', () => { |
| 68 | it('should schedule a deferredMount element', () => { |
no test coverage detected