mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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:
parent
7037facc22
commit
56e891dea1
@ -22,7 +22,7 @@ module.exports = function( grunt ) {
|
|||||||
var taskName = "node_" + testFilePath.replace( /\.js$/, "" );
|
var taskName = "node_" + testFilePath.replace( /\.js$/, "" );
|
||||||
|
|
||||||
grunt.registerTask( taskName, function() {
|
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 );
|
nodeSmokeTests.push( taskName );
|
||||||
|
@ -10,7 +10,7 @@ module.exports = function( grunt ) {
|
|||||||
|
|
||||||
grunt.registerTask( "promises_aplus_tests:deferred", function() {
|
grunt.registerTask( "promises_aplus_tests:deferred", function() {
|
||||||
spawnTest( this.async(),
|
spawnTest( this.async(),
|
||||||
__dirname + "/../../node_modules/.bin/promises-aplus-tests" +
|
"\"" + __dirname + "/../../node_modules/.bin/promises-aplus-tests\"" +
|
||||||
" test/promises_aplus_adapters/deferred.js" +
|
" test/promises_aplus_adapters/deferred.js" +
|
||||||
" --timeout " + timeout
|
" --timeout " + timeout
|
||||||
);
|
);
|
||||||
@ -18,7 +18,7 @@ module.exports = function( grunt ) {
|
|||||||
|
|
||||||
grunt.registerTask( "promises_aplus_tests:when", function() {
|
grunt.registerTask( "promises_aplus_tests:when", function() {
|
||||||
spawnTest( this.async(),
|
spawnTest( this.async(),
|
||||||
__dirname + "/../../node_modules/.bin/promises-aplus-tests" +
|
"\"" + __dirname + "/../../node_modules/.bin/promises-aplus-tests\"" +
|
||||||
" test/promises_aplus_adapters/when.js" +
|
" test/promises_aplus_adapters/when.js" +
|
||||||
" --timeout " + timeout
|
" --timeout " + timeout
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user