Skip to content

Commit

Permalink
Merge pull request #1324 from ben-bradley/json-reporter-fix
Browse files Browse the repository at this point in the history
added empty object to errorJSON() call to catch when no error is present

Introduced in #1295
Fixes #1314
  • Loading branch information
Joshua Appelman committed Aug 26, 2014
2 parents ed31b91 + f364c2d commit da0bfb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reporters/json.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function clean(test) {
title: test.title,
fullTitle: test.fullTitle(),
duration: test.duration,
err: errorJSON(test.err)
err: errorJSON(test.err || {})
}
}

Expand Down

0 comments on commit da0bfb2

Please sign in to comment.