2019-03-11 15:06:17 +00:00
|
|
|
"use strict";
|
2015-04-26 17:33:05 +00:00
|
|
|
|
2019-03-11 15:06:17 +00:00
|
|
|
module.exports = grunt => {
|
|
|
|
const timeout = 2000;
|
|
|
|
const spawnTest = require( "./lib/spawn_test.js" );
|
2015-04-26 17:33:05 +00:00
|
|
|
|
2016-04-15 03:59:30 +00:00
|
|
|
grunt.registerTask( "promises_aplus_tests",
|
2016-06-11 07:30:12 +00:00
|
|
|
[ "promises_aplus_tests:deferred", "promises_aplus_tests:when" ] );
|
2016-04-15 03:59:30 +00:00
|
|
|
|
2016-06-11 07:30:12 +00:00
|
|
|
grunt.registerTask( "promises_aplus_tests:deferred", function() {
|
2016-04-15 03:59:30 +00:00
|
|
|
spawnTest( this.async(),
|
2017-10-18 15:44:50 +00:00
|
|
|
"\"" + __dirname + "/../../node_modules/.bin/promises-aplus-tests\"" +
|
2017-09-20 13:36:40 +00:00
|
|
|
" test/promises_aplus_adapters/deferred.js" +
|
2019-03-11 15:06:17 +00:00
|
|
|
" --reporter dot" +
|
2017-09-20 13:36:40 +00:00
|
|
|
" --timeout " + timeout
|
2016-04-15 03:59:30 +00:00
|
|
|
);
|
|
|
|
} );
|
|
|
|
|
2016-06-11 07:30:12 +00:00
|
|
|
grunt.registerTask( "promises_aplus_tests:when", function() {
|
2015-04-26 17:33:05 +00:00
|
|
|
spawnTest( this.async(),
|
2017-10-18 15:44:50 +00:00
|
|
|
"\"" + __dirname + "/../../node_modules/.bin/promises-aplus-tests\"" +
|
2017-09-20 13:36:40 +00:00
|
|
|
" test/promises_aplus_adapters/when.js" +
|
2019-03-11 15:06:17 +00:00
|
|
|
" --reporter dot" +
|
2017-09-20 13:36:40 +00:00
|
|
|
" --timeout " + timeout
|
2015-04-26 17:33:05 +00:00
|
|
|
);
|
|
|
|
} );
|
|
|
|
};
|