mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
@@ -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. ' +
|
||||
|
||||
Reference in New Issue
Block a user