(element: HTMLElement)
| 574 | const secondParentEl: HTMLElement = fixture.nativeElement.querySelector('parent-comp'); |
| 575 | const elementFromRenderer: HTMLElement = fixture.nativeElement.querySelector('p'); |
| 576 | const getNgContentAttr = (element: HTMLElement) => { |
| 577 | return Array.from(element.attributes) |
| 578 | .map((a) => a.name) |
| 579 | .find((a) => /ngcontent/.test(a)); |
| 580 | }; |
| 581 | |
| 582 | const hostNgContentAttr = getNgContentAttr(secondParentEl); |
| 583 | const viewNgContentAttr = getNgContentAttr(elementFromRenderer); |
no test coverage detected