@@ -12,10 +12,10 @@ const testAppDir = path.join(rootDir, testAppName);
1212const createElmAppCmd = path . join ( rootDir , 'bin/create-elm-app-cli.js' ) ;
1313const elmAppCmd = path . join ( rootDir , 'bin/elm-app-cli.js' ) ;
1414
15- describe ( 'Ejecting Elm application. (Please wait...)' , function ( ) {
15+ describe ( 'Ejecting Elm application. (Please wait...)' , function ( ) {
1616 this . timeout ( 60000 ) ;
1717
18- before ( done => {
18+ before ( ( done ) => {
1919 const { status } = spawn . sync ( 'node' , [ createElmAppCmd , testAppName ] ) ;
2020 if ( status === 0 ) {
2121 process . chdir ( testAppDir ) ;
@@ -33,7 +33,7 @@ describe('Ejecting Elm application. (Please wait...)', function() {
3333 it ( `'elm-app eject' should succeed in '${ testAppName } '` , ( ) => {
3434 const { status, output } = spawn . sync ( 'node' , [ elmAppCmd , 'eject' ] ) ;
3535 const outputString = output
36- . map ( out => ( out !== null ? out . toString ( ) : '' ) )
36+ . map ( ( out ) => ( out !== null ? out . toString ( ) : '' ) )
3737 . join ( '' ) ;
3838
3939 expect ( status , 'to be' , 0 ) ;
@@ -50,7 +50,7 @@ describe('Ejecting Elm application. (Please wait...)', function() {
5050 start : 'node scripts/start.js' ,
5151 make : 'elm make' ,
5252 repl : 'elm repl' ,
53- reactor : 'elm reactor'
53+ reactor : 'elm reactor' ,
5454 } ) ;
5555 } ) ;
5656
@@ -77,9 +77,10 @@ describe('Ejecting Elm application. (Please wait...)', function() {
7777 it ( 'It should be possible to build ejected application, using npm scripts' , ( ) => {
7878 const { status, output } = spawn . sync ( 'npm' , [ 'run' , 'build' ] ) ;
7979 const outputString = output
80- . map ( out => ( out !== null ? out . toString ( ) : '' ) )
80+ . map ( ( out ) => ( out !== null ? out . toString ( ) : '' ) )
8181 . join ( '' ) ;
8282
83+ console . log ( outputString ) ;
8384 expect ( status , 'to be' , 0 ) ;
8485 expect ( outputString , 'to contain' , 'Compiled successfully' ) ;
8586 } ) . timeout ( 5 * 60 * 1000 ) ;
0 commit comments