Skip to content

Commit

Permalink
amend 2b8a1ff; put change in browser-entry.js
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Hiller <boneskull@boneskull.com>
  • Loading branch information
boneskull authored and irrationnelle committed Aug 23, 2020
1 parent 936ca59 commit cdde5c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions browser-entry.js
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions rollup.config.js
Expand Up @@ -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(),
Expand Down

0 comments on commit cdde5c3

Please sign in to comment.