Without this patch Jenkins tests fail as jQuery job names there contain spaces,
e.g. "jQuery Core".
Closes gh-3821
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 );
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
);
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
);