refactor(core): calling autoDetectChanges without params works for zoneless (#55800)

This was mistakenly implemented automatically by the override without
filling in the default value of `true` like it is for the zone-based
fixture.

PR Close #55800
This commit is contained in:
Andrew Scott
2024-05-14 15:13:34 -07:00
parent c4b2f18709
commit eda86d5347
@@ -194,7 +194,7 @@ export class ScheduledComponentFixture<T> extends ComponentFixture<T> {
}
}
override detectChanges(checkNoChanges: boolean = true): void {
override detectChanges(checkNoChanges = true): void {
if (!checkNoChanges) {
throw new Error(
'Cannot disable `checkNoChanges` in this configuration. ' +
@@ -206,7 +206,7 @@ export class ScheduledComponentFixture<T> extends ComponentFixture<T> {
this._effectRunner.flush();
}
override autoDetectChanges(autoDetect?: boolean | undefined): void {
override autoDetectChanges(autoDetect = true): void {
if (!autoDetect) {
throw new Error(
'Cannot disable autoDetect after it has been enabled when using the zoneless scheduler. ' +