(template: string)
| 29 | } |
| 30 | |
| 31 | function getRootNodes(template: string): any[] { |
| 32 | TestBed.overrideTemplate(App, template); |
| 33 | const fixture = TestBed.createComponent(App); |
| 34 | fixture.detectChanges(); |
| 35 | |
| 36 | const embeddedView = fixture.componentInstance.templateRef.createEmbeddedView({}); |
| 37 | embeddedView.detectChanges(); |
| 38 | |
| 39 | return embeddedView.rootNodes; |
| 40 | } |
| 41 | |
| 42 | it('should return root render nodes for an embedded view instance', () => { |
| 43 | const rootNodes = getRootNodes( |
no test coverage detected