Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Renamed global with window.

Guillermo Rauch8c1ff2dfdadb
diff --git a/support/tail.js b/support/tail.js
index 60970bae..a1fe7e77 100644
--- a/support/tail.js
+++ b/support/tail.js
@@ -48,7 +48,7 @@ process.on = function(ev, fn){
}
};
-global.mocha = require('mocha');
+window.mocha = require('mocha');
// boot
;(function(){
@@ -71,7 +71,7 @@ global.mocha = require('mocha');
ui = mocha.interfaces[ui];
if (!ui) throw new Error('invalid mocha interface "' + ui + '"');
ui(suite);
- suite.emit('pre-require', global);
+ suite.emit('pre-require', window);
};
mocha.run = function(){