@@ -56,7 +56,7 @@ describe('App Shell Schematic', () => {
5656
5757 it ( 'should add a universal app' , async ( ) => {
5858 const tree = await schematicRunner . runSchematic ( 'app-shell' , defaultOptions , appTree ) ;
59- const filePath = '/projects/bar/src/app/app.server. module.ts' ;
59+ const filePath = '/projects/bar/src/app/app.module.server .ts' ;
6060 expect ( tree . exists ( filePath ) ) . toEqual ( true ) ;
6161 } ) ;
6262
@@ -145,7 +145,7 @@ describe('App Shell Schematic', () => {
145145
146146 it ( 'should add router imports to server module' , async ( ) => {
147147 const tree = await schematicRunner . runSchematic ( 'app-shell' , defaultOptions , appTree ) ;
148- const filePath = '/projects/bar/src/app/app.server. module.ts' ;
148+ const filePath = '/projects/bar/src/app/app.module.server .ts' ;
149149 const content = tree . readContent ( filePath ) ;
150150 expect ( content ) . toMatch ( / i m p o r t { R o u t e s , R o u t e r M o d u l e } f r o m ' @ a n g u l a r \/ r o u t e r ' ; / ) ;
151151 } ) ;
@@ -158,21 +158,21 @@ describe('App Shell Schematic', () => {
158158 appTree . overwrite ( 'angular.json' , JSON . stringify ( workspace , undefined , 2 ) ) ;
159159
160160 tree = await schematicRunner . runSchematic ( 'app-shell' , defaultOptions , tree ) ;
161- const filePath = '/projects/bar/src/app/app.server. module.ts' ;
161+ const filePath = '/projects/bar/src/app/app.module.server .ts' ;
162162 const content = tree . readContent ( filePath ) ;
163163 expect ( content ) . toMatch ( / i m p o r t { R o u t e s , R o u t e r M o d u l e } f r o m ' @ a n g u l a r \/ r o u t e r ' ; / ) ;
164164 } ) ;
165165
166166 it ( 'should define a server route' , async ( ) => {
167167 const tree = await schematicRunner . runSchematic ( 'app-shell' , defaultOptions , appTree ) ;
168- const filePath = '/projects/bar/src/app/app.server. module.ts' ;
168+ const filePath = '/projects/bar/src/app/app.module.server .ts' ;
169169 const content = tree . readContent ( filePath ) ;
170170 expect ( content ) . toMatch ( / c o n s t r o u t e s : R o u t e s = \[ / ) ;
171171 } ) ;
172172
173173 it ( 'should import RouterModule with forRoot' , async ( ) => {
174174 const tree = await schematicRunner . runSchematic ( 'app-shell' , defaultOptions , appTree ) ;
175- const filePath = '/projects/bar/src/app/app.server. module.ts' ;
175+ const filePath = '/projects/bar/src/app/app.module.server .ts' ;
176176 const content = tree . readContent ( filePath ) ;
177177 expect ( content ) . toMatch (
178178 / c o n s t r o u t e s : R o u t e s = \[ { p a t h : ' s h e l l ' , c o m p o n e n t : A p p S h e l l C o m p o n e n t } \] ; / ,
@@ -183,7 +183,7 @@ describe('App Shell Schematic', () => {
183183 it ( 'should create the shell component' , async ( ) => {
184184 const tree = await schematicRunner . runSchematic ( 'app-shell' , defaultOptions , appTree ) ;
185185 expect ( tree . exists ( '/projects/bar/src/app/app-shell/app-shell.component.ts' ) ) . toBe ( true ) ;
186- const content = tree . readContent ( '/projects/bar/src/app/app.server. module.ts' ) ;
186+ const content = tree . readContent ( '/projects/bar/src/app/app.module.server .ts' ) ;
187187 expect ( content ) . toMatch ( / a p p - s h e l l \. c o m p o n e n t / ) ;
188188 } ) ;
189189
0 commit comments