2015-04-26 17:33:05 +00:00
|
|
|
module.exports = function( grunt ) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
var spawnTest = require( "./lib/spawn_test.js" );
|
|
|
|
|
2016-04-15 03:59:30 +00:00
|
|
|
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() {
|
2015-04-26 17:33:05 +00:00
|
|
|
spawnTest( this.async(),
|
|
|
|
"./node_modules/.bin/promises-aplus-tests",
|
2016-04-15 03:59:30 +00:00
|
|
|
"test/promises_aplus_adapter_when.js"
|
2015-04-26 17:33:05 +00:00
|
|
|
);
|
|
|
|
} );
|
|
|
|
};
|