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 (80394ce08b). This change restores missing "async"s.

PR Close #30762
This commit is contained in:
Andrew Kushnir 2019-05-30 21:09:28 -07:00 committed by Misko Hevery
parent 80394ce08b
commit e0c36620c1
2 changed files with 2 additions and 2 deletions

View File

@ -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';

View File

@ -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';