@@ -19,7 +19,6 @@ describe('Module Schematic', () => {
1919 ) ;
2020 const defaultOptions : ModuleOptions = {
2121 name : 'foo' ,
22- spec : true ,
2322 module : undefined ,
2423 flat : false ,
2524 project : 'bar' ,
@@ -51,7 +50,6 @@ describe('Module Schematic', () => {
5150
5251 const tree = schematicRunner . runSchematic ( 'module' , options , appTree ) ;
5352 const files = tree . files ;
54- expect ( files . indexOf ( '/projects/bar/src/app/foo/foo.module.spec.ts' ) ) . toBeGreaterThanOrEqual ( 0 ) ;
5553 expect ( files . indexOf ( '/projects/bar/src/app/foo/foo.module.ts' ) ) . toBeGreaterThanOrEqual ( 0 ) ;
5654 } ) ;
5755
@@ -96,24 +94,13 @@ describe('Module Schematic', () => {
9694 expect ( routingModuleContent ) . toMatch ( / R o u t e r M o d u l e .f o r C h i l d \( r o u t e s \) / ) ;
9795 } ) ;
9896
99- it ( 'should respect the spec flag' , ( ) => {
100- const options = { ...defaultOptions , spec : false } ;
101-
102- const tree = schematicRunner . runSchematic ( 'module' , options , appTree ) ;
103- const files = tree . files ;
104- expect ( files . indexOf ( '/projects/bar/src/app/foo/foo.module.ts' ) ) . toBeGreaterThanOrEqual ( 0 ) ;
105- expect ( files . indexOf ( '/projects/bar/src/app/foo/foo.module.spec.ts' ) ) . toEqual ( - 1 ) ;
106- } ) ;
107-
10897 it ( 'should dasherize a name' , ( ) => {
10998 const options = { ...defaultOptions , name : 'TwoWord' } ;
11099
111100 const tree = schematicRunner . runSchematic ( 'module' , options , appTree ) ;
112101 const files = tree . files ;
113102 expect ( files . indexOf ( '/projects/bar/src/app/two-word/two-word.module.ts' ) )
114103 . toBeGreaterThanOrEqual ( 0 ) ;
115- expect ( files . indexOf ( '/projects/bar/src/app/two-word/two-word.module.spec.ts' ) )
116- . toBeGreaterThanOrEqual ( 0 ) ;
117104 } ) ;
118105
119106 it ( 'should respect the sourceRoot value' , ( ) => {
0 commit comments