diff --git a/build/tasks/node_smoke_tests.js b/build/tasks/node_smoke_tests.js index 157aa80af..bd0a9150e 100644 --- a/build/tasks/node_smoke_tests.js +++ b/build/tasks/node_smoke_tests.js @@ -22,7 +22,7 @@ module.exports = function( grunt ) { var taskName = "node_" + testFilePath.replace( /\.js$/, "" ); grunt.registerTask( taskName, function() { - spawnTest( this.async(), "node test/node_smoke_tests/" + testFilePath ); + spawnTest( this.async(), "node \"test/node_smoke_tests/" + testFilePath + "\"" ); } ); nodeSmokeTests.push( taskName ); diff --git a/build/tasks/promises_aplus_tests.js b/build/tasks/promises_aplus_tests.js index 5bd20ecdc..7f8153448 100644 --- a/build/tasks/promises_aplus_tests.js +++ b/build/tasks/promises_aplus_tests.js @@ -10,7 +10,7 @@ module.exports = function( grunt ) { grunt.registerTask( "promises_aplus_tests:deferred", function() { spawnTest( this.async(), - __dirname + "/../../node_modules/.bin/promises-aplus-tests" + + "\"" + __dirname + "/../../node_modules/.bin/promises-aplus-tests\"" + " test/promises_aplus_adapters/deferred.js" + " --timeout " + timeout ); @@ -18,7 +18,7 @@ module.exports = function( grunt ) { grunt.registerTask( "promises_aplus_tests:when", function() { spawnTest( this.async(), - __dirname + "/../../node_modules/.bin/promises-aplus-tests" + + "\"" + __dirname + "/../../node_modules/.bin/promises-aplus-tests\"" + " test/promises_aplus_adapters/when.js" + " --timeout " + timeout );