@@ -19,7 +19,6 @@ describe('Module Schematic', () => {
19
19
) ;
20
20
const defaultOptions : ModuleOptions = {
21
21
name : 'foo' ,
22
- spec : true ,
23
22
module : undefined ,
24
23
flat : false ,
25
24
project : 'bar' ,
@@ -51,7 +50,6 @@ describe('Module Schematic', () => {
51
50
52
51
const tree = schematicRunner . runSchematic ( 'module' , options , appTree ) ;
53
52
const files = tree . files ;
54
- expect ( files . indexOf ( '/projects/bar/src/app/foo/foo.module.spec.ts' ) ) . toBeGreaterThanOrEqual ( 0 ) ;
55
53
expect ( files . indexOf ( '/projects/bar/src/app/foo/foo.module.ts' ) ) . toBeGreaterThanOrEqual ( 0 ) ;
56
54
} ) ;
57
55
@@ -96,24 +94,13 @@ describe('Module Schematic', () => {
96
94
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 \) / ) ;
97
95
} ) ;
98
96
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
-
108
97
it ( 'should dasherize a name' , ( ) => {
109
98
const options = { ...defaultOptions , name : 'TwoWord' } ;
110
99
111
100
const tree = schematicRunner . runSchematic ( 'module' , options , appTree ) ;
112
101
const files = tree . files ;
113
102
expect ( files . indexOf ( '/projects/bar/src/app/two-word/two-word.module.ts' ) )
114
103
. toBeGreaterThanOrEqual ( 0 ) ;
115
- expect ( files . indexOf ( '/projects/bar/src/app/two-word/two-word.module.spec.ts' ) )
116
- . toBeGreaterThanOrEqual ( 0 ) ;
117
104
} ) ;
118
105
119
106
it ( 'should respect the sourceRoot value' , ( ) => {
0 commit comments