File tree Expand file tree Collapse file tree
packages/schematics/angular/app-shell Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -136,27 +136,5 @@ describe('App Shell Schematic', () => {
136136 const content = tree . readContent ( filePath ) ;
137137 expect ( content ) . toContain ( `import { AppShell } from './app-shell/app-shell';` ) ;
138138 } ) ;
139-
140- it ( 'should not inherit the component `type` from the workspace defaults' , async ( ) => {
141- // The CLI applies the `schematics` defaults of `angular.json` to nested schematics as well.
142- // Emulate it with a fresh runner so that other tests are not affected.
143- const runner = new SchematicTestRunner (
144- '@schematics/angular' ,
145- require . resolve ( '../collection.json' ) ,
146- ) ;
147- runner [ '_engineHost' ] . registerOptionsTransform (
148- ( schematic : { name : string } , options : Record < string , unknown > ) =>
149- schematic . name === 'component' && options [ 'type' ] === undefined
150- ? { ...options , type : 'component' }
151- : options ,
152- ) ;
153-
154- const tree = await runner . runSchematic ( 'app-shell' , defaultOptions , appTree ) ;
155-
156- expect ( tree . exists ( '/projects/bar/src/app/app-shell/app-shell.ts' ) ) . toBe ( true ) ;
157- expect ( tree . exists ( '/projects/bar/src/app/app-shell/app-shell.component.ts' ) ) . toBe ( false ) ;
158- const content = tree . readContent ( '/projects/bar/src/app/app.config.server.ts' ) ;
159- expect ( content ) . toContain ( `import { AppShell } from './app-shell/app-shell';` ) ;
160- } ) ;
161139 } ) ;
162140} ) ;
You can’t perform that action at this time.
0 commit comments