module.exports = function( grunt ) {

	"use strict";

	var timeout = 2000,
		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(),
			"\"" + __dirname + "/../../node_modules/.bin/promises-aplus-tests\"" +
				" test/promises_aplus_adapters/deferred.js" +
				" --timeout " + timeout
		);
	} );

	grunt.registerTask( "promises_aplus_tests:when", function() {
		spawnTest( this.async(),
			"\"" + __dirname + "/../../node_modules/.bin/promises-aplus-tests\"" +
				" test/promises_aplus_adapters/when.js" +
				" --timeout " + timeout
		);
	} );
};

"use strict";

module.exports = grunt => {
	const timeout = 2000;
	const 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(),
			"\"" + __dirname + "/../../node_modules/.bin/promises-aplus-tests\"" +
				" test/promises_aplus_adapters/deferred.js" +
				" --reporter dot" +
				" --timeout " + timeout
		);
	} );

	grunt.registerTask( "promises_aplus_tests:when", function() {
		spawnTest( this.async(),
			"\"" + __dirname + "/../../node_modules/.bin/promises-aplus-tests\"" +
				" test/promises_aplus_adapters/when.js" +
				" --reporter dot" +
				" --timeout " + timeout
		);
	} );
};

Make Promises/A+ tests use the dot reporter instead of the default
Build: Make Promises/A+ tests use the dot reporter instead of the default

The default reporter is very verbose as it prints all the test names it
encounters. We already use the dot reporter for Karma tests.

Closes gh-4313