11assert = require ' assert'
22rallyAppBuilder = require ' ../index'
33fs = require ' fs'
4- wrench = require ' wrench '
4+ fsextra = require ' fs-extra '
55path = require ' path'
66sinon = require ' sinon'
77shell = require ' shelljs'
@@ -18,7 +18,7 @@ sdk2WithExternalStylesDirectory = path.join(tempTestDirectory, 'sdk2WithExternal
1818describe ' Build an App' , ()->
1919 before (done )->
2020 try
21- copy = ()-> wrench . copyDirRecursive (fixturesDirectory, tempTestDirectory, done)
21+ copy = ()-> fsextra . copy (fixturesDirectory, tempTestDirectory, done)
2222 fs .mkdir (tempTestDirectory, copy)
2323 catch e
2424 after (done )->
@@ -205,7 +205,7 @@ describe 'Build an App', ()->
205205 assert (appDebugFileContents .indexOf (" http://www.regular.com/stuff.css" ) >= 0 )
206206
207207 describe ' with build scripts' , ->
208-
208+
209209 beforeEach ->
210210 @config = require (' ../lib/config' )
211211
@@ -246,18 +246,18 @@ describe 'Build an App', ()->
246246
247247 afterEach ->
248248 @sandbox .restore ()
249-
249+
250250 it ' should push and pop the app path directory' , (done )->
251251 rallyAppBuilder .build .runScript {scripts : {prebuild : ' cmd' }}, ' appPath' , ' prebuild' , (err )->
252252 assert (shell .pushd .calledWith (' appPath' ))
253253 assert (shell .pushd .calledBefore (shell .exec ))
254254 assert (shell .popd .called )
255255 assert (shell .exec .calledBefore (shell .popd ))
256256 done ()
257-
257+
258258 it ' should exec the script step' , (done )->
259259 rallyAppBuilder .build .runScript {scripts : {prebuild : ' cmd' }}, ' appPath' , ' prebuild' , (err )->
260- assert (shell .exec .calledWith (' cmd' ))
260+ assert (shell .exec .calledWith (' cmd' ))
261261 done ()
262262
263263 it ' should error if attempting and undefined step' , (done )->
@@ -270,4 +270,3 @@ describe 'Build an App', ()->
270270 assert (not err? )
271271 assert (not shell .exec .called )
272272 done ()
273-
0 commit comments