Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added empty object to errorJSON() call to catch when no error is present #1324

Merged
merged 1 commit into from
Aug 26, 2014
Merged

added empty object to errorJSON() call to catch when no error is present #1324

merged 1 commit into from
Aug 26, 2014

Conversation

ben-bradley
Copy link

When using the json reporter (-R json), the errorJSON() function quietly dies if there is no test.err property. Feeding it an empty object allows it to succeed.

This also addresses #1314.

jbnicolai pushed a commit that referenced this pull request Aug 26, 2014
added empty object to errorJSON() call to catch when no error is present

Introduced in #1295
Fixes #1314
@jbnicolai jbnicolai merged commit da0bfb2 into mochajs:master Aug 26, 2014
@jbnicolai
Copy link

@ben-bradley looks good, thanks! ⭐

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants