diff --git a/lib/reporters/base.js b/lib/reporters/base.js index b1d026fcce..c0f46a0f11 100644 --- a/lib/reporters/base.js +++ b/lib/reporters/base.js @@ -239,8 +239,12 @@ exports.list = function(failures) { color('error title', ' %s) %s:\n%s') + color('error stack', '\n%s\n'); var match = message.match(/^([^:]+): expected/); msg = '\n ' + color('error message', match ? match[1] : msg); - msg += generateDiff(err.actual, err.expected); + } else { + if (msg.includes('\n')) { + var errStrSplit = msg.split('\n'); + msg = errStrSplit.join('\n '); + } } // indent stack trace @@ -257,7 +261,6 @@ exports.list = function(failures) { } testTitle += str; }); - Base.consoleLog(fmt, i + 1, testTitle, msg, stack); }); };