Skip to content

Commit

Permalink
test(docs-infra): fix test for preview server's BuildCleaner comple…
Browse files Browse the repository at this point in the history
…ting prematurely (angular#25671)

PR Close angular#25671
  • Loading branch information
gkalpak authored and kara committed Sep 26, 2018
1 parent 897261e commit b31c8b6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,12 @@ describe('BuildCleaner', () => {
});


it('should return a promise', () => {
it('should return a promise', async () => {
const promise = cleaner.cleanUp();
expect(promise).toEqual(jasmine.any(Promise));

// Do not complete the test and release the spies synchronously, to avoid running the actual implementations.
await promise;
});


Expand Down

0 comments on commit b31c8b6

Please sign in to comment.