* A helper function to check if a given object looks like ElementRef. It is used in place of * the `instanceof ElementRef` check since ivy returns a type that looks like ElementRef (have * the same properties but doesn't pass the instanceof ElementRef test)
(result: any)
| 1111 | * the same properties but doesn't pass the instanceof ElementRef test) |
| 1112 | */ |
| 1113 | function isElementRefLike(result: any): boolean { |
| 1114 | return result.nativeElement != null; |
| 1115 | } |
| 1116 | |
| 1117 | it('should match directives on elements that used to be wrapped by a required parent in HTML parser', () => { |
| 1118 | @Directive({ |