@@ -61,8 +61,8 @@ describe('angular-fullstack generator', function () {
6161 } ) ;
6262 }
6363
64- function runE2E ( ) {
65- this . timeout ( 240000 ) ; // 4 minutes
64+ function runE2E ( self , done ) {
65+ self . timeout ( 240000 ) ; // 4 minutes
6666 gen . run ( { } , function ( ) {
6767 exec ( 'grunt test:e2e' , function ( error , stdout , stderr ) {
6868 expect ( stdout , 'Client tests failed \n' + stdout ) . to . contain ( '0 failures' ) ;
@@ -87,6 +87,9 @@ describe('angular-fullstack generator', function () {
8787 case 'grunt jshint' :
8888 expect ( stdout ) . to . contain ( 'Done, without errors.' ) ;
8989 break ;
90+ case 'grunt jscs' :
91+ expect ( stdout ) . to . contain ( 'Done, without errors.' ) ;
92+ break ;
9093 case 'grunt test:server' :
9194 expect ( stdout , 'Server tests failed (do you have mongoDB running?) \n' + stdout ) . to . contain ( 'Done, without errors.' ) ;
9295 break ;
@@ -358,7 +361,7 @@ describe('angular-fullstack generator', function () {
358361 } ) ;
359362
360363 it ( 'should run e2e tests successfully' , function ( done ) {
361- runE2E ( ) ;
364+ runE2E ( this , done ) ;
362365 } ) ;
363366 } ) ;
364367
@@ -414,7 +417,7 @@ describe('angular-fullstack generator', function () {
414417 } ) ;
415418
416419 it ( 'should run e2e tests successfully' , function ( done ) {
417- runE2E ( ) ;
420+ runE2E ( this , done ) ;
418421 } ) ;
419422 } ) ;
420423
@@ -471,7 +474,7 @@ describe('angular-fullstack generator', function () {
471474 } ) ;
472475
473476 it ( 'should run e2e tests successfully' , function ( done ) {
474- runE2E ( ) ;
477+ runE2E ( this , done ) ;
475478 } ) ;
476479 } ) ;
477480
@@ -520,7 +523,7 @@ describe('angular-fullstack generator', function () {
520523 } ) ;
521524
522525 it ( 'should run e2e tests successfully' , function ( done ) {
523- runE2E ( ) ;
526+ runE2E ( this , done ) ;
524527 } ) ;
525528 } ) ;
526529 } ) ;
0 commit comments