Trigger Change Detection
We use fixture.detectChanges
in the tests to instruct Angular to run change detection before doing our assertions with Jasmine’s expect.
We use the detectChanges in order to apply data to the component template
Last updated