Skip to content

Commit eda86d5

Browse files
committed
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
1 parent c4b2f18 commit eda86d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/testing/src/component_fixture.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export class ScheduledComponentFixture<T> extends ComponentFixture<T> {
194194
}
195195
}
196196

197-
override detectChanges(checkNoChanges: boolean = true): void {
197+
override detectChanges(checkNoChanges = true): void {
198198
if (!checkNoChanges) {
199199
throw new Error(
200200
'Cannot disable `checkNoChanges` in this configuration. ' +
@@ -206,7 +206,7 @@ export class ScheduledComponentFixture<T> extends ComponentFixture<T> {
206206
this._effectRunner.flush();
207207
}
208208

209-
override autoDetectChanges(autoDetect?: boolean | undefined): void {
209+
override autoDetectChanges(autoDetect = true): void {
210210
if (!autoDetect) {
211211
throw new Error(
212212
'Cannot disable autoDetect after it has been enabled when using the zoneless scheduler. ' +

0 commit comments

Comments
 (0)