@@ -41,7 +41,9 @@ describe('ngc transformer command-line', () => {
4141 basePath = support . basePath ;
4242 outDir = path . join ( basePath , 'built' ) ;
4343 process . chdir ( basePath ) ;
44- write = ( fileName : string , content : string ) => { support . write ( fileName , content ) ; } ;
44+ write = ( fileName : string , content : string ) => {
45+ support . write ( fileName , content ) ;
46+ } ;
4547
4648 write ( 'tsconfig-base.json' , `{
4749 "compilerOptions": {
@@ -96,8 +98,9 @@ describe('ngc transformer command-line', () => {
9698 } ) ;
9799
98100 describe ( 'errors' , ( ) => {
99-
100- beforeEach ( ( ) => { errorSpy . and . stub ( ) ; } ) ;
101+ beforeEach ( ( ) => {
102+ errorSpy . and . stub ( ) ;
103+ } ) ;
101104
102105 it ( 'should not print the stack trace if user input file does not exist' , ( ) => {
103106 writeConfig ( `{
@@ -231,7 +234,6 @@ describe('ngc transformer command-line', () => {
231234 } ) ;
232235
233236 describe ( 'compile ngfactory files' , ( ) => {
234-
235237 it ( 'should compile ngfactory files that are not referenced by root files' , ( ) => {
236238 writeConfig ( `{
237239 "extends": "./tsconfig-base.json",
@@ -1122,7 +1124,6 @@ describe('ngc transformer command-line', () => {
11221124 } ) ;
11231125
11241126 describe ( 'with external symbol re-exports enabled' , ( ) => {
1125-
11261127 it ( 'should be able to compile multiple libraries with summaries' , ( ) => {
11271128 // Note: we need to emit the generated code for the libraries
11281129 // into the node_modules, as that is the only way that we
@@ -1560,11 +1561,13 @@ describe('ngc transformer command-line', () => {
15601561 jasmine . DEFAULT_TIMEOUT_INTERVAL = 10000 ;
15611562 const timerToken = 100 ;
15621563 // TODO: @JiaLiPassion , need to wait @types/jasmine to handle optional method case
1564+ // https://github.com/DefinitelyTyped/DefinitelyTyped/issues/43486
15631565 spyOn ( ts . sys as any , 'setTimeout' ) . and . callFake ( ( callback : ( ) => void ) => {
15641566 timer = callback ;
15651567 return timerToken ;
15661568 } ) ;
15671569 // TODO: @JiaLiPassion , need to wait @types/jasmine to handle optional method case
1570+ // https://github.com/DefinitelyTyped/DefinitelyTyped/issues/43486
15681571 spyOn ( ts . sys as any , 'clearTimeout' ) . and . callFake ( ( token : number ) => {
15691572 if ( token == timerToken ) {
15701573 timer = undefined ;
@@ -1617,7 +1620,9 @@ describe('ngc transformer command-line', () => {
16171620 ` ) ;
16181621 } ) ;
16191622
1620- afterEach ( ( ) => { jasmine . DEFAULT_TIMEOUT_INTERVAL = originalTimeout ; } ) ;
1623+ afterEach ( ( ) => {
1624+ jasmine . DEFAULT_TIMEOUT_INTERVAL = originalTimeout ;
1625+ } ) ;
16211626
16221627 function writeAppConfig ( location : string ) {
16231628 writeConfig ( `{
@@ -1672,11 +1677,13 @@ describe('ngc transformer command-line', () => {
16721677 ` ) ;
16731678 } ) ) ;
16741679
1675- it ( 'should recompile when the html file changes' ,
1676- expectRecompile ( ( ) => { write ( 'greet.html' , '<p> Hello {{name}} again!</p>' ) ; } ) ) ;
1680+ it ( 'should recompile when the html file changes' , expectRecompile ( ( ) => {
1681+ write ( 'greet.html' , '<p> Hello {{name}} again!</p>' ) ;
1682+ } ) ) ;
16771683
1678- it ( 'should recompile when the css file changes' ,
1679- expectRecompile ( ( ) => { write ( 'greet.css' , `p.greeting { color: blue }` ) ; } ) ) ;
1684+ it ( 'should recompile when the css file changes' , expectRecompile ( ( ) => {
1685+ write ( 'greet.css' , `p.greeting { color: blue }` ) ;
1686+ } ) ) ;
16801687 } ) ;
16811688
16821689 describe ( 'regressions' , ( ) => {
@@ -2041,8 +2048,8 @@ describe('ngc transformer command-line', () => {
20412048 expect ( exitCode ) . toBe ( 1 , 'Compile was expected to fail' ) ;
20422049 const srcPathWithSep = `lib/` ;
20432050 expect ( messages [ 0 ] )
2044- . toEqual (
2045- ` ${ srcPathWithSep } test.component.ts(6,21): Error during template compile of 'TestComponent'
2051+ . toEqual ( ` ${
2052+ srcPathWithSep } test.component.ts(6,21): Error during template compile of 'TestComponent'
20462053 Tagged template expressions are not supported in metadata in 't1'
20472054 't1' references 't2' at ${ srcPathWithSep } indirect1.ts(3,27)
20482055 't2' contains the error at ${ srcPathWithSep } indirect2.ts(4,27).
@@ -2051,7 +2058,6 @@ describe('ngc transformer command-line', () => {
20512058 } ) ;
20522059
20532060 describe ( 'tree shakeable services' , ( ) => {
2054-
20552061 function compileService ( source : string ) : string {
20562062 write ( 'service.ts' , source ) ;
20572063
0 commit comments