Skip to content

armgit / mocha

Public Imported from GitHub
0

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

amend 2b8a1ff; put change in browser-entry.js

Christopher Hiller667e9a21c106
diff --git a/browser-entry.js b/browser-entry.js
index cdcb56b6..dee37892 100644
--- a/browser-entry.js
+++ b/browser-entry.js
@@ -210,8 +210,8 @@ Mocha.process = process;
* Expose mocha.
*/
-mocha.Mocha = Mocha;
-mocha.mocha = mocha;
+global.Mocha = Mocha;
+global.mocha = mocha;
// this allows test/acceptance/required-tokens.js to pass; thus,
// you can now do `const describe = require('mocha').describe` in a
diff --git a/rollup.config.js b/rollup.config.js
index d475c477..4b4f3494 100644
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -17,8 +17,7 @@ const config = {
file: './mocha.js',
format: 'umd',
sourcemap: true,
- name: 'mocha',
- footer: 'window.Mocha = window.mocha.Mocha;'
+ name: 'mocha'
},
plugins: [
json(),