@@ -24,14 +24,10 @@ describe( 'Generate backend seed (models)', function ( ) {
2424 expect ( stdout ) . to . not . match ( / a l r e a d y e x i s t s w i t h i n / ) ;
2525
2626 expect ( fs . readdirSync ( path . join ( assetPath , 'my-new-project' , 'backend' , 'modules' , 'Testing2' ) ) . length ) . to . equal ( 1 ) ;
27- expect ( fs . existsSync ( path . join ( assetPath , 'my-new-project' , 'backend' , 'modules' , 'Testing2' , 'models' , 'odm' , 'Testing2Model.js' ) ) ) . to . be . true ;
28- expect ( fs . existsSync ( path . join ( assetPath , 'my-new-project' , 'backend' , 'modules' , 'Testing2' , 'models' , 'odm' , 'Testing2Model.js' ) ) ) . to . be . true ;
27+ expect ( fs . existsSync ( path . join ( assetPath , 'my-new-project' , 'backend' , 'modules' , 'Testing2' , 'models' , 'Testing2Model.js' ) ) ) . to . be . true ;
2928
30- var odmModel = fs . readFileSync ( path . join ( assetPath , 'my-new-project' , 'backend' , 'modules' , 'Testing2' , 'models' , 'odm' , 'Testing2Model.js' ) ) ;
31- expect ( odmModel ) . to . match ( / r e t u r n m o n g o o s e \. m o d e l \( ' T e s t i n g 2 ' , M o d e l S c h e m a \) ; / ) ;
32-
33- var ormModel = fs . readFileSync ( path . join ( assetPath , 'my-new-project' , 'backend' , 'modules' , 'Testing2' , 'models' , 'orm' , 'Testing2Model.js' ) ) ;
34- expect ( ormModel ) . to . match ( / r e t u r n s e q u e l i z e .d e f i n e \( " T e s t i n g 2 " , \{ / ) ;
29+ var model = fs . readFileSync ( path . join ( assetPath , 'my-new-project' , 'backend' , 'modules' , 'Testing2' , 'models' , 'Testing2Model.js' ) ) ;
30+ expect ( model ) . to . match ( / r e t u r n M o d e l \. e x t e n d \( " T e s t i n g 2 " , / ) ;
3531
3632 done ( err ) ;
3733 } ) ;
0 commit comments