Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Fix style (#1205)

Travis Jeffery4c8b3ee757ca
diff --git a/lib/reporters/json.js b/lib/reporters/json.js
index e8e33578..e202692f 100644
--- a/lib/reporters/json.js
+++ b/lib/reporters/json.js
@@ -42,10 +42,10 @@ function JSONReporter(runner) {
runner.on('end', function(){
var obj = {
- stats: self.stats
- , tests: tests.map(clean)
- , failures: failures.map(clean)
- , passes: passes.map(clean)
+ stats: self.stats,
+ tests: tests.map(clean),
+ failures: failures.map(clean),
+ passes: passes.map(clean)
};
process.stdout.write(JSON.stringify(obj, null, 2));
@@ -63,9 +63,9 @@ function JSONReporter(runner) {
function clean(test) {
return {
- title: test.title
- , fullTitle: test.fullTitle()
- , duration: test.duration
- , err: test.err
+ title: test.title,
+ fullTitle: test.fullTitle(),
+ duration: test.duration,
+ err: test.err
}
}