diff --git a/tasks/mocha.js b/tasks/mocha.js index 294b166..fb3ddc5 100644 --- a/tasks/mocha.js +++ b/tasks/mocha.js @@ -230,7 +230,8 @@ module.exports = function(grunt) { if (Reporter === null) { grunt.fatal('Specified reporter is unknown or unresolvable: ' + options.reporter); } - reporter = new Reporter(runner); + // XUnit reporter requires second arg (options) + reporter = new Reporter(runner, {}); // Launch PhantomJS. phantomjs.spawn(url, {