Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Fixed slow browser tests. Closes #135

Tj Holowaychukb5ff18a1c31e
diff --git a/mocha.js b/mocha.js
index 12388bfb..e5ef7fda 100644
--- a/mocha.js
+++ b/mocha.js
@@ -737,7 +737,7 @@ exports.colors = {
, 'bright fail': 91
, 'bright yellow': 93
, 'pending': 36
- , 'suite': '40'
+ , 'suite': 0
, 'error title': 0
, 'error message': 31
, 'error stack': 90
@@ -2618,9 +2618,7 @@ process.exit = function(status){};
process.stdout = {};
global = this;
-process.nextTick = function(fn){
- setTimeout(fn, 0);
-};
+process.nextTick = function(fn){ fn(); };
process.removeListener = function(ev){
if ('uncaughtException' == ev) {
diff --git a/support/tail.js b/support/tail.js
index 1e801b3e..e11db765 100644
--- a/support/tail.js
+++ b/support/tail.js
@@ -13,9 +13,7 @@ process.exit = function(status){};
process.stdout = {};
global = this;
-process.nextTick = function(fn){
- setTimeout(fn, 0);
-};
+process.nextTick = function(fn){ fn(); };
process.removeListener = function(ev){
if ('uncaughtException' == ev) {