(h: string)
| 896 | } |
| 897 | |
| 898 | check(h: string) { |
| 899 | if (h === hook) { |
| 900 | this.count++; |
| 901 | if (this.count > 1) throw new Error(`ng${hook} should be called only once!`); |
| 902 | this.parentComp.triggerChangeDetection(); |
| 903 | } |
| 904 | } |
| 905 | } |
| 906 | |
| 907 | TestBed.configureTestingModule({declarations: [ParentComp, ChildComp]}); |
no test coverage detected