mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
test(docs-infra): fix test for preview server's BuildCleaner completing prematurely (#25671)
PR Close #25671
This commit is contained in:
committed by
Kara Erickson
parent
897261efdc
commit
b31c8b6063
@@ -88,9 +88,12 @@ describe('BuildCleaner', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
it('should return a promise', () => {
|
it('should return a promise', async () => {
|
||||||
const promise = cleaner.cleanUp();
|
const promise = cleaner.cleanUp();
|
||||||
expect(promise).toEqual(jasmine.any(Promise));
|
expect(promise).toEqual(jasmine.any(Promise));
|
||||||
|
|
||||||
|
// Do not complete the test and release the spies synchronously, to avoid running the actual implementations.
|
||||||
|
await promise;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user