Skip to content

armgit / mocha

Public Imported from GitHub
0

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

tweak spec style

Tj Holowaychuk721ed0423de5
diff --git a/lib/reporters/base.js b/lib/reporters/base.js
index cb7d3f74..52953523 100644
--- a/lib/reporters/base.js
+++ b/lib/reporters/base.js
@@ -31,7 +31,7 @@ exports.colors = {
'pass': 90
, 'fail': 31
, 'pending': 36
- , 'suite': '1;90'
+ , 'suite': '40'
, 'error title': 0
, 'error message': 31
, 'error stack': 90
diff --git a/lib/reporters/spec.js b/lib/reporters/spec.js
index 43cd3f7c..8efc3936 100644
--- a/lib/reporters/spec.js
+++ b/lib/reporters/spec.js
@@ -42,6 +42,7 @@ function Spec(runner) {
runner.on('suite end', function(suite){
--indents;
+ if (1 == indents) console.log();
});
runner.on('test', function(test){