(h: string)
| 870 | } |
| 871 | |
| 872 | check(h: string) { |
| 873 | if (h === hook) { |
| 874 | this.count++; |
| 875 | if (this.count > 1) throw new Error(`ng${hook} should be called only once!`); |
| 876 | this.parentComp.triggerChangeDetection(); |
| 877 | } |
| 878 | } |
| 879 | } |
| 880 | |
| 881 | TestBed.configureTestingModule({imports: [ParentComp, ChildComp]}); |
no test coverage detected