11/*global describe, beforeEach, it */
22'use strict' ;
33var path = require ( 'path' ) ;
4- var fs = require ( 'fs-extra ' ) ;
4+ var fs = require ( 'fs' ) ;
55var exec = require ( 'child_process' ) . exec ;
66var helpers = require ( 'yeoman-generator' ) . test ;
77var chai = require ( 'chai' ) ;
@@ -25,6 +25,8 @@ describe('angular-fullstack generator', function () {
2525 socketio : true
2626 } , dependenciesInstalled = false ;
2727
28+ function copySync ( s , d ) { fs . writeFileSync ( d , fs . readFileSync ( s ) ) ; }
29+
2830 function generatorTest ( generatorType , name , mockPrompt , callback ) {
2931 gen . run ( function ( ) {
3032 var afGenerator ;
@@ -442,7 +444,7 @@ describe('angular-fullstack generator', function () {
442444
443445 it ( 'should use existing config if available' , function ( done ) {
444446 this . timeout ( 60000 ) ;
445- fs . copySync ( __dirname + '/fixtures/.yo-rc.json' , __dirname + '/temp/.yo-rc.json' ) ;
447+ copySync ( __dirname + '/fixtures/.yo-rc.json' , __dirname + '/temp/.yo-rc.json' ) ;
446448 var gen = helpers . createGenerator ( 'angular-fullstack:app' , [
447449 '../../app' ,
448450 '../../endpoint' ,
@@ -467,7 +469,7 @@ describe('angular-fullstack generator', function () {
467469
468470 it ( 'should add oauth option if existing config had oauth strategy selected' , function ( done ) {
469471 this . timeout ( 60000 ) ;
470- fs . copySync ( __dirname + '/fixtures/.yo-rc.json' , __dirname + '/temp/.yo-rc.json' ) ;
472+ copySync ( __dirname + '/fixtures/.yo-rc.json' , __dirname + '/temp/.yo-rc.json' ) ;
471473 var gen = helpers . createGenerator ( 'angular-fullstack:app' , [
472474 '../../app' ,
473475 '../../endpoint' ,
0 commit comments