Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

removing ' || undefined'

Ben Bradley75e32754cbd8
diff --git a/lib/reporters/json.js b/lib/reporters/json.js
index 85d5e2db..e8e33578 100644
--- a/lib/reporters/json.js
+++ b/lib/reporters/json.js
@@ -66,6 +66,6 @@ function clean(test) {
title: test.title
, fullTitle: test.fullTitle()
, duration: test.duration
- , err: test.err || undefined
+ , err: test.err
}
}