@@ -32,29 +32,29 @@ describe('Acceptance: ng generate module', function () {
32
32
33
33
it ( 'ng generate module my-module' , function ( ) {
34
34
return ng ( [ 'generate' , 'module' , 'my-module' ] ) . then ( ( ) => {
35
- expect ( existsSync ( path . join ( testPath , 'my-module.module.ts' ) ) ) . to . equal ( true ) ;
36
- expect ( existsSync ( path . join ( testPath , 'my-module.module.spec.ts' ) ) ) . to . equal ( false ) ;
35
+ expect ( existsSync ( path . join ( testPath , 'my-module' , 'my-module .module.ts') ) ) . to . equal ( true ) ;
36
+ expect ( existsSync ( path . join ( testPath , 'my-module' , 'my-module .module.spec.ts') ) ) . to . equal ( false ) ;
37
37
} ) ;
38
38
} ) ;
39
39
40
40
it ( 'ng generate module my-module --spec' , function ( ) {
41
41
return ng ( [ 'generate' , 'module' , 'my-module' , '--spec' ] ) . then ( ( ) => {
42
- expect ( existsSync ( path . join ( testPath , 'my-module.module.ts' ) ) ) . to . equal ( true ) ;
43
- expect ( existsSync ( path . join ( testPath , 'my-module.module.spec.ts' ) ) ) . to . equal ( true ) ;
42
+ expect ( existsSync ( path . join ( testPath , 'my-module' , 'my-module .module.ts') ) ) . to . equal ( true ) ;
43
+ expect ( existsSync ( path . join ( testPath , 'my-module' , 'my-module .module.spec.ts') ) ) . to . equal ( true ) ;
44
44
} ) ;
45
45
} ) ;
46
46
47
47
it ( `ng generate module shared${ path . sep } my-module` , function ( ) {
48
48
return ng ( [ 'generate' , 'module' , 'shared/my-module' ] ) . then ( ( ) => {
49
- expect ( existsSync ( path . join ( testPath , 'shared' , 'my-module.module.ts' ) ) ) . to . equal ( true ) ;
50
- expect ( existsSync ( path . join ( testPath , 'shared' , 'my-module.module.spec.ts' ) ) ) . to . equal ( false ) ;
49
+ expect ( existsSync ( path . join ( testPath , 'shared' , 'my-module' , 'my-module .module.ts') ) ) . to . equal ( true ) ;
50
+ expect ( existsSync ( path . join ( testPath , 'shared' , 'my-module' , 'my-module .module.spec.ts') ) ) . to . equal ( false ) ;
51
51
} ) ;
52
52
} ) ;
53
53
54
54
it ( `ng generate module shared${ path . sep } my-module --spec` , function ( ) {
55
55
return ng ( [ 'generate' , 'module' , 'shared/my-module' , '--spec' ] ) . then ( ( ) => {
56
- expect ( existsSync ( path . join ( testPath , 'shared' , 'my-module.module.ts' ) ) ) . to . equal ( true ) ;
57
- expect ( existsSync ( path . join ( testPath , 'shared' , 'my-module.module.spec.ts' ) ) ) . to . equal ( true ) ;
56
+ expect ( existsSync ( path . join ( testPath , 'shared' , 'my-module' , 'my-module .module.ts') ) ) . to . equal ( true ) ;
57
+ expect ( existsSync ( path . join ( testPath , 'shared' , 'my-module' , 'my-module .module.spec.ts') ) ) . to . equal ( true ) ;
58
58
} ) ;
59
59
} ) ;
60
60
} ) ;
0 commit comments