We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When err.showDiff is false it does not prevent a diff being shown.
err.showDiff
false
Here is the only place where showDiff is being used in Mocha:
showDiff
// msg var err = test.err , message = err.message || '' , stack = err.stack || message , index = stack.indexOf(message) + message.length , msg = stack.slice(0, index) , actual = err.actual , expected = err.expected , escape = true; // explicitly show diff if (err.showDiff) { escape = false; err.actual = actual = JSON.stringify(actual, null, 2); err.expected = expected = JSON.stringify(expected, null, 2); }
I think its just been overlooked.
The text was updated successfully, but these errors were encountered:
Respect err.showDiff, add Base reporter test (close mochajs#810)
a5d7240
d5e4d51
Successfully merging a pull request may close this issue.
When
err.showDiff
isfalse
it does not prevent a diff being shown.Here is the only place where
showDiff
is being used in Mocha:I think its just been overlooked.
The text was updated successfully, but these errors were encountered: