Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Merge branch 'master' into x-browser

Guillermo Rauch7fffe599843b
diff --cc Makefile
index f8218d6a,b067a054..93d4a91e
--- a/Makefile
+++ b/Makefile
@@@ -10,9 -9,14 +10,14 @@@ all: mocha.js mocha.cs
mocha.css: test/browser/style.css
cp -f $< $@
-mocha.js: $(SRC)
- @node support/compile $^
+mocha.js: $(SRC) $(SUPPORT)
+ @node support/compile $(SRC)
- @cat support/head.js _mocha.js support/{tail,foot}.js > mocha.js
+ @cat \
+ support/head.js \
+ _mocha.js \
+ support/setZeroTimeout.js \
+ support/{tail,foot}.js \
+ > mocha.js
clean:
rm -f mocha.{js,css}
diff --cc lib/mocha.js
index ffbb58a1,91e3afe6..37ad6f4b
--- a/lib/mocha.js
+++ b/lib/mocha.js
@@@ -9,9 -9,8 +9,9 @@@
* Library version.
*/
- exports.version = '0.5.0';
+ exports.version = '0.6.0';
+exports.utils = require('./utils');
exports.interfaces = require('./interfaces');
exports.reporters = require('./reporters');
exports.Runnable = require('./runnable');
diff --cc support/tail.js
index fe57b0dd,f92420c2..c5861ca9
--- a/support/tail.js
+++ b/support/tail.js
@@@ -11,9 -11,9 +11,9 @@@
process = {};
process.exit = function(status){};
process.stdout = {};
-global = this;
+global = window;
- process.nextTick = function(fn){ fn(); };
+ process.nextTick = setZeroTimeout;
process.removeListener = function(ev){
if ('uncaughtException' == ev) {