Skip to content

Commit 667e9a2

Browse files
committed
amend 2b8a1ff; put change in browser-entry.js
Signed-off-by: Christopher Hiller <[email protected]>
1 parent 2137163 commit 667e9a2

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

browser-entry.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ Mocha.process = process;
210210
* Expose mocha.
211211
*/
212212

213-
mocha.Mocha = Mocha;
214-
mocha.mocha = mocha;
213+
global.Mocha = Mocha;
214+
global.mocha = mocha;
215215

216216
// this allows test/acceptance/required-tokens.js to pass; thus,
217217
// you can now do `const describe = require('mocha').describe` in a

rollup.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ const config = {
1717
file: './mocha.js',
1818
format: 'umd',
1919
sourcemap: true,
20-
name: 'mocha',
21-
footer: 'window.Mocha = window.mocha.Mocha;'
20+
name: 'mocha'
2221
},
2322
plugins: [
2423
json(),

0 commit comments

Comments
 (0)