Skip to content

armgit / mocha

Public Imported from GitHub
0

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

IE8 fix for exposing `mocha`.

Guillermo Rauch66c737ecb747
diff --git a/support/tail.js b/support/tail.js
index e11db765..bfaf02ee 100644
--- a/support/tail.js
+++ b/support/tail.js
@@ -11,7 +11,7 @@
process = {};
process.exit = function(status){};
process.stdout = {};
-global = this;
+global = window;
process.nextTick = function(fn){ fn(); };
@@ -27,7 +27,7 @@ process.on = function(ev, fn){
}
};
-mocha = require('mocha');
+global.mocha = require('mocha');
// boot
;(function(){