Skip to content

armgit / mocha

Public Imported from GitHub
0

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

fixed events to match node

Tj Holowaychuk1303f14b131b
diff --git a/lib/browser/events.js b/lib/browser/events.js
index 50c47ba0..bbac40bd 100644
--- a/lib/browser/events.js
+++ b/lib/browser/events.js
@@ -3,7 +3,7 @@
* Module exports.
*/
-module.exports = EventEmitter;
+exports.EventEmitter = EventEmitter;
/**
* Check if `obj` is an array.
diff --git a/mocha.js b/mocha.js
index 5c4f7296..944791ec 100644
--- a/mocha.js
+++ b/mocha.js
@@ -61,7 +61,7 @@ require.register("browser/events.js", function(module, exports, require){
* Module exports.
*/
-module.exports = EventEmitter
+exports.EventEmitter = EventEmitter;
/**
* Check if `obj` is an array.