From f364c2d72babf337219e1ad2b96cdd25322a5fa1 Mon Sep 17 00:00:00 2001 From: Ben Bradley <[ben.bradley@cigna.com|mailto:ben.bradley@cigna.com]> Date: Mon, 25 Aug 2014 09:31:10 -0700 Subject: [PATCH] added empty object to errorJSON() call to catch when no error is present --- lib/reporters/json.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reporters/json.js b/lib/reporters/json.js index d03712013b..dcf89e066c 100644 --- a/lib/reporters/json.js +++ b/lib/reporters/json.js @@ -68,7 +68,7 @@ function clean(test) { title: test.title, fullTitle: test.fullTitle(), duration: test.duration, - err: errorJSON(test.err) + err: errorJSON(test.err || {}) } }