@@ -56,7 +56,7 @@ describe('App Shell Schematic', () => {
56
56
57
57
it ( 'should add a universal app' , async ( ) => {
58
58
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' ;
60
60
expect ( tree . exists ( filePath ) ) . toEqual ( true ) ;
61
61
} ) ;
62
62
@@ -145,7 +145,7 @@ describe('App Shell Schematic', () => {
145
145
146
146
it ( 'should add router imports to server module' , async ( ) => {
147
147
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' ;
149
149
const content = tree . readContent ( filePath ) ;
150
150
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 ' ; / ) ;
151
151
} ) ;
@@ -158,21 +158,21 @@ describe('App Shell Schematic', () => {
158
158
appTree . overwrite ( 'angular.json' , JSON . stringify ( workspace , undefined , 2 ) ) ;
159
159
160
160
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' ;
162
162
const content = tree . readContent ( filePath ) ;
163
163
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 ' ; / ) ;
164
164
} ) ;
165
165
166
166
it ( 'should define a server route' , async ( ) => {
167
167
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' ;
169
169
const content = tree . readContent ( filePath ) ;
170
170
expect ( content ) . toMatch ( / c o n s t r o u t e s : R o u t e s = \[ / ) ;
171
171
} ) ;
172
172
173
173
it ( 'should import RouterModule with forRoot' , async ( ) => {
174
174
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' ;
176
176
const content = tree . readContent ( filePath ) ;
177
177
expect ( content ) . toMatch (
178
178
/ 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', () => {
183
183
it ( 'should create the shell component' , async ( ) => {
184
184
const tree = await schematicRunner . runSchematic ( 'app-shell' , defaultOptions , appTree ) ;
185
185
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' ) ;
187
187
expect ( content ) . toMatch ( / a p p - s h e l l \. c o m p o n e n t / ) ;
188
188
} ) ;
189
189
0 commit comments