aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/tasks/promises-aplus-tests.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/build/tasks/promises-aplus-tests.js b/build/tasks/promises-aplus-tests.js
new file mode 100644
index 000000000..458ae1be0
--- /dev/null
+++ b/build/tasks/promises-aplus-tests.js
@@ -0,0 +1,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 );
+ });
+ });
+};