Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
Pass options to Reporter instantiation for XUnit
Browse files Browse the repository at this point in the history
Fixes latest XUnit reporter in Mocha 2.x
  • Loading branch information
kmiyashiro committed Dec 1, 2015
1 parent f85f4f1 commit 86c996a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/mocha.js
Expand Up @@ -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, {
Expand Down

0 comments on commit 86c996a

Please sign in to comment.