diff options
Diffstat (limited to 'build/tasks/promises_aplus_tests.js')
-rw-r--r-- | build/tasks/promises_aplus_tests.js | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/build/tasks/promises_aplus_tests.js b/build/tasks/promises_aplus_tests.js index 3e770a079..c4fb86d4c 100644 --- a/build/tasks/promises_aplus_tests.js +++ b/build/tasks/promises_aplus_tests.js @@ -4,10 +4,20 @@ module.exports = function( grunt ) { var spawnTest = require( "./lib/spawn_test.js" ); - grunt.registerTask( "promises_aplus_tests", function() { + grunt.registerTask( "promises_aplus_tests", + [ "promises_aplus_tests_deferred", "promises_aplus_tests_when" ] ); + + grunt.registerTask( "promises_aplus_tests_deferred", function() { + spawnTest( this.async(), + "./node_modules/.bin/promises-aplus-tests", + "test/promises_aplus_adapter_deferred.js" + ); + } ); + + grunt.registerTask( "promises_aplus_tests_when", function() { spawnTest( this.async(), "./node_modules/.bin/promises-aplus-tests", - "test/promises_aplus_adapter.js" + "test/promises_aplus_adapter_when.js" ); } ); }; |