aboutsummaryrefslogtreecommitdiffstats
path: root/build/tasks/promises-aplus-tests.js
blob: d6d6f778167e70889de33e0d82fd7261d7bb9097 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module.exports = function( grunt ) {

	"use strict";

	var spawn = require( "child_process" ).spawn;

	grunt.registerTask( "promises-aplus-tests", function() {
		var done = this.async();
		spawn(
			"node",
			[
				"./node_modules/.bin/promises-aplus-tests",
				"test/promises-aplus-adapter.js"
			],
			{ stdio: "inherit" }
		).on( "close", function( code ) {
			done( code === 0 );
		} );
	} );
};