Build: Make Promises/A+ tests use the dot reporter instead of the default
[jquery.git] / build / tasks / promises_aplus_tests.js
blobcb1a4fddb8e0bcf3e8e0e47755381d36b8b795f5
1 "use strict";
3 module.exports = grunt => {
4 const timeout = 2000;
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.js" +
14 " --reporter dot" +
15 " --timeout " + timeout
17 } );
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.js" +
23 " --reporter dot" +
24 " --timeout " + timeout
26 } );