Skip to content

Commit

Permalink
fix(core): update imports to be compatible with rxjs 6 (#54193)
Browse files Browse the repository at this point in the history
Peer dependency range allows for rxjs 6. We cannot use features only
available in rxjs 7 unless that changes.

fixes #54192

PR Close #54193
  • Loading branch information
atscott authored and thePunderWoman committed Feb 1, 2024
1 parent 908baec commit 3cf612c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/testing/src/component_fixture.ts
Expand Up @@ -7,8 +7,8 @@
*/

import {ApplicationRef, ChangeDetectorRef, ComponentRef, DebugElement, ElementRef, getDebugNode, inject, NgZone, RendererFactory2, ɵChangeDetectionScheduler as ChangeDetectionScheduler, ɵDeferBlockDetails as DeferBlockDetails, ɵEffectScheduler as EffectScheduler, ɵgetDeferBlocks as getDeferBlocks, ɵNoopNgZone as NoopNgZone, ɵPendingTasks as PendingTasks} from '@angular/core';
import {firstValueFrom, Subscription} from 'rxjs';
import {filter, take} from 'rxjs/operators';
import {Subscription} from 'rxjs';
import {first} from 'rxjs/operators';

import {DeferBlockFixture} from './defer';
import {AllowDetectChangesAndAcknowledgeItCanHideApplicationBugs, ComponentFixtureAutoDetect, ComponentFixtureNoNgZone} from './test_bed_common';
Expand Down Expand Up @@ -194,7 +194,7 @@ export class ScheduledComponentFixture<T> extends ComponentFixture<T> {
if (this.isStable()) {
return Promise.resolve(false);
}
return firstValueFrom(this._appRef.isStable.pipe(filter(stable => stable)));
return this._appRef.isStable.pipe(first(stable => stable)).toPromise().then(() => true);
}

override autoDetectChanges(autoDetect?: boolean|undefined): void {
Expand Down

0 comments on commit 3cf612c

Please sign in to comment.