| 378 | |
| 379 | it('throws errors that happen during detectChanges', () => { |
| 380 | @Component({ |
| 381 | template: '', |
| 382 | }) |
| 383 | class App { |
| 384 | ngOnInit() { |
| 385 | throw new Error(); |
| 386 | } |
| 387 | } |
| 388 | |
| 389 | const fixture = TestBed.createComponent(App); |
| 390 | expect(() => fixture.detectChanges()).toThrow(); |