build: fix build failures (#20470)

This commit is contained in:
Chuck Jazdzewski 2017-11-15 22:33:30 -08:00 committed by Miško Hevery
parent 336041aac9
commit dcfffbf828
3 changed files with 4 additions and 4 deletions

View File

@ -119,7 +119,7 @@ describe('perform watch', () => {
const errorFileContent = `
import {NgModule} from '@angular/core';
@NgModule(() => (1===1 ? null as any : null as any))
@NgModule((() => (1===1 ? null as any : null as any)) as any)
export class MyModule {}
`;
const indexTsPath = path.resolve(testSupport.basePath, 'src', 'index.ts');

View File

@ -325,7 +325,7 @@ describe('ng program', () => {
'src/main.ts': `
import {NgModule} from '@angular/core';
@NgModule(() => {if (1==1) return null as any;})
@NgModule((() => {if (1==1) return null as any;}) as any)
export class SomeClassWithInvalidMetadata {}
`,
});