(element: HTMLElement)
| 551 | const secondParentEl: HTMLElement = fixture.nativeElement.querySelector('parent-comp'); |
| 552 | const elementFromRenderer: HTMLElement = fixture.nativeElement.querySelector('p'); |
| 553 | const getNgContentAttr = (element: HTMLElement) => { |
| 554 | return Array.from(element.attributes) |
| 555 | .map((a) => a.name) |
| 556 | .find((a) => /ngcontent/.test(a)); |
| 557 | }; |
| 558 | |
| 559 | const hostNgContentAttr = getNgContentAttr(secondParentEl); |
| 560 | const viewNgContentAttr = getNgContentAttr(elementFromRenderer); |
no test coverage detected