From e0c36620c18e85892e6f3db88b661c3bc51187ef Mon Sep 17 00:00:00 2001 From: Andrew Kushnir Date: Thu, 30 May 2019 21:09:28 -0700 Subject: [PATCH] test: resotre "async" around tests where "await" is used (#30762) The "async" around a couple tests was removed because of the merge conflict in one of the previous commits (80394ce08b12ff95167cf1c4aec61044bb78fbe6). This change restores missing "async"s. PR Close #30762 --- packages/core/schematics/test/injectable_pipe_migration_spec.ts | 2 +- packages/core/schematics/test/move_document_migration_spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/schematics/test/injectable_pipe_migration_spec.ts b/packages/core/schematics/test/injectable_pipe_migration_spec.ts index a07732b4e9..4cdf8c7918 100644 --- a/packages/core/schematics/test/injectable_pipe_migration_spec.ts +++ b/packages/core/schematics/test/injectable_pipe_migration_spec.ts @@ -74,7 +74,7 @@ describe('injectable pipe migration', () => { .toMatch(/@Injectable\(\)\s+@Pipe\(\{ name: 'myPipe' \}\)\s+export class MyPipe/); }); - it('should add an import for Injectable to the @angular/core import declaration', () => { + it('should add an import for Injectable to the @angular/core import declaration', async() => { writeFile('/index.ts', ` import { Pipe } from '@angular/core'; diff --git a/packages/core/schematics/test/move_document_migration_spec.ts b/packages/core/schematics/test/move_document_migration_spec.ts index 066f04a122..7254158615 100644 --- a/packages/core/schematics/test/move_document_migration_spec.ts +++ b/packages/core/schematics/test/move_document_migration_spec.ts @@ -73,7 +73,7 @@ describe('move-document migration', () => { expect(content).not.toContain(`import {DOCUMENT} from '@angular/platform-browser';`); }); - it('should properly apply import replacement with existing import', () => { + it('should properly apply import replacement with existing import', async() => { writeFile('/index.ts', ` import {DOCUMENT} from '@angular/platform-browser'; import {someImport} from '@angular/common';