@@ -32,29 +32,29 @@ describe('Acceptance: ng generate module', function () {
3232
3333 it ( 'ng generate module my-module' , function ( ) {
3434 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 ) ;
3737 } ) ;
3838 } ) ;
3939
4040 it ( 'ng generate module my-module --spec' , function ( ) {
4141 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 ) ;
4444 } ) ;
4545 } ) ;
4646
4747 it ( `ng generate module shared${ path . sep } my-module` , function ( ) {
4848 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 ) ;
5151 } ) ;
5252 } ) ;
5353
5454 it ( `ng generate module shared${ path . sep } my-module --spec` , function ( ) {
5555 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 ) ;
5858 } ) ;
5959 } ) ;
6060} ) ;
0 commit comments