Visitar URL original
refactor(common): remove duplicate helper function · angular/angular@6dcb534 · GitHub
Skip to content

Commit 6dcb534

Browse files
JeanMechealxhub
authored andcommitted
refactor(common): remove duplicate helper function
We have `useAutoTick` in our private shared utils. (cherry picked from commit 36474f7)
1 parent a3fb4fe commit 6dcb534

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

‎packages/common/test/pipes/async_pipe_spec.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {AsyncPipe} from '../../index';
109
import {
1110
ChangeDetectorRef,
1211
Component,
@@ -16,8 +15,9 @@ import {
1615
signal,
1716
} from '@angular/core';
1817
import {TestBed} from '@angular/core/testing';
18+
import {useAutoTick} from '@angular/private/testing';
1919
import {Observable, of, Subscribable, Unsubscribable} from 'rxjs';
20-
import {useAutoTick} from './util';
20+
import {AsyncPipe} from '../../index';
2121

2222
describe('AsyncPipe', () => {
2323
let pipe: AsyncPipe;

‎packages/common/test/pipes/util.ts‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,3 @@ export async function timeout(ms?: number): Promise<void> {
1111
setTimeout(resolve, ms);
1212
});
1313
}
14-
15-
export function useAutoTick() {
16-
beforeEach(() => {
17-
jasmine.clock().install();
18-
jasmine.clock().autoTick();
19-
});
20-
afterEach(() => {
21-
jasmine.clock().uninstall();
22-
});
23-
}

0 commit comments

Comments
 (0)