3 module.exports = grunt => {
5 const spawnTest = require( "./lib/spawn_test.js" );
7 grunt.registerTask( "promises_aplus_tests",
8 [ "promises_aplus_tests:deferred", "promises_aplus_tests:when" ] );
10 grunt.registerTask( "promises_aplus_tests:deferred", function() {
11 spawnTest( this.async(),
12 "\"" + __dirname + "/../../node_modules/.bin/promises-aplus-tests\"" +
13 " test/promises_aplus_adapters/deferred.cjs" +
15 " --timeout " + timeout
19 grunt.registerTask( "promises_aplus_tests:when", function() {
20 spawnTest( this.async(),
21 "\"" + __dirname + "/../../node_modules/.bin/promises-aplus-tests\"" +
22 " test/promises_aplus_adapters/when.cjs" +
24 " --timeout " + timeout