(selector = 'bootstrap-app')
| 70 | }); |
| 71 | |
| 72 | function createRootEl(selector = 'bootstrap-app') { |
| 73 | const doc = TestBed.inject(DOCUMENT); |
| 74 | const rootEl = <HTMLElement>( |
| 75 | getContent(createTemplate(`<${selector}></${selector}>`)).firstChild |
| 76 | ); |
| 77 | const oldRoots = doc.querySelectorAll(selector); |
| 78 | for (let i = 0; i < oldRoots.length; i++) { |
| 79 | getDOM().remove(oldRoots[i]); |
| 80 | } |
| 81 | doc.body.appendChild(rootEl); |
| 82 | } |
| 83 | |
| 84 | type CreateModuleOptions = { |
| 85 | providers?: any[]; |
no test coverage detected
searching dependent graphs…