From 555a50d340706e3e1e0de09231050493d0ad841e Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Mon, 29 Dec 2014 14:14:13 -0500 Subject: Deferred: Backwards-compatible standards interoperability Fixes gh-1722 Closes gh-1996 --- build/tasks/promises-aplus-tests.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 build/tasks/promises-aplus-tests.js (limited to 'build/tasks') 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 ); + }); + }); +}; -- cgit v1.2.3