mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
356a3bccb0
Single- and no-argument calls act like Promise.resolve. Multi-argument calls act like Promise.all. Fixes gh-3029 Closes gh-3059
24 lines
612 B
JavaScript
24 lines
612 B
JavaScript
module.exports = function( grunt ) {
|
|
|
|
"use strict";
|
|
|
|
var 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(),
|
|
"./node_modules/.bin/promises-aplus-tests",
|
|
"test/promises_aplus_adapter_deferred.js"
|
|
);
|
|
} );
|
|
|
|
grunt.registerTask( "promises_aplus_tests_when", function() {
|
|
spawnTest( this.async(),
|
|
"./node_modules/.bin/promises-aplus-tests",
|
|
"test/promises_aplus_adapter_when.js"
|
|
);
|
|
} );
|
|
};
|