(h: string)
| 912 | } |
| 913 | |
| 914 | check(h: string) { |
| 915 | if (h === hook) { |
| 916 | this.count++; |
| 917 | if (this.count > 1) throw new Error(`ng${hook} should be called only once!`); |
| 918 | this.parentComp.triggerChangeDetection(); |
| 919 | } |
| 920 | } |
| 921 | } |
| 922 | |
| 923 | TestBed.configureTestingModule({declarations: [ParentComp, ChildComp]}); |
no test coverage detected