refactor(common): remove duplicate helper function

We have `useAutoTick` in our private shared utils.
This commit is contained in:
Matthieu Riegler
2026-07-28 11:12:27 +02:00
committed by Alex Rickabaugh
parent 9373d22a48
commit 36474f7011
2 changed files with 2 additions and 12 deletions
@@ -6,7 +6,6 @@
* found in the LICENSE file at https://angular.dev/license
*/
import {AsyncPipe} from '../../index';
import {
ChangeDetectorRef,
Component,
@@ -16,8 +15,9 @@ import {
signal,
} from '@angular/core';
import {TestBed} from '@angular/core/testing';
import {useAutoTick} from '@angular/private/testing';
import {Observable, of, Subscribable, Unsubscribable} from 'rxjs';
import {useAutoTick} from './util';
import {AsyncPipe} from '../../index';
describe('AsyncPipe', () => {
let pipe: AsyncPipe;
-10
View File
@@ -11,13 +11,3 @@ export async function timeout(ms?: number): Promise<void> {
setTimeout(resolve, ms);
});
}
export function useAutoTick() {
beforeEach(() => {
jasmine.clock().install();
jasmine.clock().autoTick();
});
afterEach(() => {
jasmine.clock().uninstall();
});
}