* Triggers change detection for a specific fixture. * @param fixture The fixture to trigger change detection for.
(fixture: Fixture)
| 80 | * @param fixture The fixture to trigger change detection for. |
| 81 | */ |
| 82 | async function detectChanges(fixture: Fixture) { |
| 83 | fixture.detectChanges(); |
| 84 | if (isInFakeAsyncZone()) { |
| 85 | flush(); |
| 86 | } else { |
| 87 | await fixture.whenStable(); |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | /** A `HarnessEnvironment` implementation for Angular's Testbed. */ |
| 92 | export class TestbedHarnessEnvironment extends HarnessEnvironment<Element> { |
no test coverage detected