Tests: Make Node tests work for paths with spaces in them

Without this patch Jenkins tests fail as jQuery job names there contain spaces,
e.g. "jQuery Core".

Closes gh-3821
This commit is contained in:
Michał Gołębiowski-Owczarek 2017-10-18 17:44:50 +02:00 committed by GitHub
parent 7037facc22
commit 56e891dea1
2 changed files with 3 additions and 3 deletions

View File

@ -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 );

View File

@ -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
);