@@ -54,7 +54,7 @@ describe('Application Schematic', () => {
54
54
'/projects/foo/src/index.html' ,
55
55
'/projects/foo/src/main.ts' ,
56
56
'/projects/foo/src/styles.css' ,
57
- '/projects/foo/src/app/app. module.ts' ,
57
+ '/projects/foo/src/app/app- module.ts' ,
58
58
'/projects/foo/src/app/app.css' ,
59
59
'/projects/foo/src/app/app.ng.html' ,
60
60
'/projects/foo/src/app/app.spec.ts' ,
@@ -542,7 +542,7 @@ describe('Application Schematic', () => {
542
542
const options = { ...defaultOptions , standalone : true } ;
543
543
544
544
const tree = await schematicRunner . runSchematic ( 'application' , options , workspaceTree ) ;
545
- const moduleFiles = tree . files . filter ( ( file ) => file . endsWith ( '. module.ts' ) ) ;
545
+ const moduleFiles = tree . files . filter ( ( file ) => file . endsWith ( '- module.ts' ) ) ;
546
546
expect ( moduleFiles . length ) . toEqual ( 0 ) ;
547
547
} ) ;
548
548
@@ -625,11 +625,11 @@ describe('Application Schematic', () => {
625
625
const tree = await schematicRunner . runSchematic ( 'application' , options , workspaceTree ) ;
626
626
627
627
const files = tree . files ;
628
- expect ( files ) . toContain ( '/projects/foo/src/app/app. module.ts' ) ;
629
- expect ( files ) . toContain ( '/projects/foo/src/app/app-routing. module.ts' ) ;
630
- const moduleContent = tree . readContent ( '/projects/foo/src/app/app. module.ts' ) ;
631
- expect ( moduleContent ) . toMatch ( / i m p o r t { A p p R o u t i n g M o d u l e } f r o m ' .\/ a p p - r o u t i n g . m o d u l e ' / ) ;
632
- const routingModuleContent = tree . readContent ( '/projects/foo/src/app/app-routing. module.ts' ) ;
628
+ expect ( files ) . toContain ( '/projects/foo/src/app/app- module.ts' ) ;
629
+ expect ( files ) . toContain ( '/projects/foo/src/app/app-routing- module.ts' ) ;
630
+ const moduleContent = tree . readContent ( '/projects/foo/src/app/app- module.ts' ) ;
631
+ expect ( moduleContent ) . toMatch ( / i m p o r t { A p p R o u t i n g M o d u l e } f r o m ' .\/ a p p - r o u t i n g - m o d u l e ' / ) ;
632
+ const routingModuleContent = tree . readContent ( '/projects/foo/src/app/app-routing- module.ts' ) ;
633
633
expect ( routingModuleContent ) . toMatch ( / R o u t e r M o d u l e .f o r R o o t \( r o u t e s \) / ) ;
634
634
} ) ;
635
635
@@ -640,7 +640,7 @@ describe('Application Schematic', () => {
640
640
workspaceTree ,
641
641
) ;
642
642
643
- const path = '/projects/foo/src/app/app. module.ts' ;
643
+ const path = '/projects/foo/src/app/app- module.ts' ;
644
644
const content = tree . readContent ( path ) ;
645
645
expect ( content ) . toMatch ( / i m p o r t { B r o w s e r M o d u l e } f r o m ' @ a n g u l a r \/ p l a t f o r m - b r o w s e r ' ; / ) ;
646
646
} ) ;
@@ -652,7 +652,7 @@ describe('Application Schematic', () => {
652
652
workspaceTree ,
653
653
) ;
654
654
655
- const path = '/projects/foo/src/app/app. module.ts' ;
655
+ const path = '/projects/foo/src/app/app- module.ts' ;
656
656
const content = tree . readContent ( path ) ;
657
657
expect ( content ) . toMatch ( / i m p o r t { A p p } f r o m ' \. \/ a p p ' ; / ) ;
658
658
} ) ;
@@ -669,8 +669,8 @@ describe('Application Schematic', () => {
669
669
'/projects/foo/tsconfig.spec.json' ,
670
670
'/projects/foo/src/main.ts' ,
671
671
'/projects/foo/src/styles.css' ,
672
- '/projects/foo/src/app/app-routing. module.ts' ,
673
- '/projects/foo/src/app/app. module.ts' ,
672
+ '/projects/foo/src/app/app-routing- module.ts' ,
673
+ '/projects/foo/src/app/app- module.ts' ,
674
674
'/projects/foo/src/app/app.css' ,
675
675
'/projects/foo/src/app/app.ng.html' ,
676
676
'/projects/foo/src/app/app.spec.ts' ,
@@ -696,7 +696,7 @@ describe('Application Schematic', () => {
696
696
) ;
697
697
} ) ;
698
698
699
- it ( 'should add provideExperimentalZonelessChangeDetection() in app. module.ts when experimentalZoneless is true' , async ( ) => {
699
+ it ( 'should add provideExperimentalZonelessChangeDetection() in app- module.ts when experimentalZoneless is true' , async ( ) => {
700
700
const tree = await schematicRunner . runSchematic (
701
701
'application' ,
702
702
{
@@ -706,12 +706,12 @@ describe('Application Schematic', () => {
706
706
} ,
707
707
workspaceTree ,
708
708
) ;
709
- const path = '/projects/foo/src/app/app. module.ts' ;
709
+ const path = '/projects/foo/src/app/app- module.ts' ;
710
710
const fileContent = tree . readContent ( path ) ;
711
711
expect ( fileContent ) . toContain ( 'provideExperimentalZonelessChangeDetection()' ) ;
712
712
} ) ;
713
713
714
- it ( 'should not add provideExperimentalZonelessChangeDetection() in app. module.ts when experimentalZoneless is false' , async ( ) => {
714
+ it ( 'should not add provideExperimentalZonelessChangeDetection() in app- module.ts when experimentalZoneless is false' , async ( ) => {
715
715
const tree = await schematicRunner . runSchematic (
716
716
'application' ,
717
717
{
@@ -721,7 +721,7 @@ describe('Application Schematic', () => {
721
721
} ,
722
722
workspaceTree ,
723
723
) ;
724
- const path = '/projects/foo/src/app/app. module.ts' ;
724
+ const path = '/projects/foo/src/app/app- module.ts' ;
725
725
const fileContent = tree . readContent ( path ) ;
726
726
expect ( fileContent ) . not . toContain ( 'provideExperimentalZonelessChangeDetection()' ) ;
727
727
} ) ;
0 commit comments