Skip to content

Commit

Permalink
Merge pull request #114 from seanzer/fail-on-exception
Browse files Browse the repository at this point in the history
Report errors during test as failures
  • Loading branch information
Jameskmonger committed Mar 30, 2016
2 parents 01ed2cb + 65ec625 commit efc4880
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports = function (opts) {
var runner;

function handleException(err) {
if (err.name === 'AssertionError' && runner) {
if (runner) {
runner.uncaught(err);
} else {
clearCache();
Expand Down

0 comments on commit efc4880

Please sign in to comment.