From 52d0268d5fab42c3d1f5636c85419c23edc9ab7d Mon Sep 17 00:00:00 2001 From: Christopher Hiller Date: Fri, 8 Jul 2016 21:14:39 -0700 Subject: [PATCH] don't truncate message-list Error in Base.list(); closes #2361 --- lib/reporters/base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reporters/base.js b/lib/reporters/base.js index 5fe0eb71a6..4c9e8064cd 100644 --- a/lib/reporters/base.js +++ b/lib/reporters/base.js @@ -178,7 +178,7 @@ exports.list = function(failures) { message = ''; } var stack = err.stack || message; - var index = stack.indexOf(message); + var index = message ? stack.indexOf(message) : -1; var actual = err.actual; var expected = err.expected; var escape = true;