Skip to content

Commit

Permalink
return null if tests are pending and return entire suite instead of j…
Browse files Browse the repository at this point in the history
…ust the first object
  • Loading branch information
stutrek committed Jun 19, 2015
1 parent 3f5d602 commit 7148d4f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/js-testing-reporter-adapter/mocha-reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ window.mocha && (JSTestingReporterSL = (function(undefined) {
};
}

return reporterSuite(mocha.suite).suites[0];
if (mocha.suite.pending) {
return null;
}

return reporterSuite(mocha.suite);
};
})());

0 comments on commit 7148d4f

Please sign in to comment.