mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
56e891dea1
Without this patch Jenkins tests fail as jQuery job names there contain spaces, e.g. "jQuery Core". Closes gh-3821
27 lines
750 B
JavaScript
27 lines
750 B
JavaScript
module.exports = function( grunt ) {
|
|
|
|
"use strict";
|
|
|
|
var timeout = 2000,
|
|
spawnTest = require( "./lib/spawn_test.js" );
|
|
|
|
grunt.registerTask( "promises_aplus_tests",
|
|
[ "promises_aplus_tests:deferred", "promises_aplus_tests:when" ] );
|
|
|
|
grunt.registerTask( "promises_aplus_tests:deferred", function() {
|
|
spawnTest( this.async(),
|
|
"\"" + __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\"" +
|
|
" test/promises_aplus_adapters/when.js" +
|
|
" --timeout " + timeout
|
|
);
|
|
} );
|
|
};
|