Skip to content

Commit

Permalink
Merge 2cf235b into 02bdb6b
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Jul 17, 2020
2 parents 02bdb6b + 2cf235b commit 86fd8c7
Show file tree
Hide file tree
Showing 16 changed files with 546 additions and 335 deletions.
5 changes: 0 additions & 5 deletions .eslintrc.yml
Expand Up @@ -15,11 +15,6 @@ rules:
strict:
- error
- safe
# disallow Object.assign
no-restricted-properties:
- error
- object: 'Object'
property: 'assign'
overrides:
- files:
- 'docs/js/**/*.js'
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -49,7 +49,7 @@ jobs:
node_js: '10'
name: 'Node.js v10'

- script: npm start test.bundle test.browser
- script: npm start test.browser
name: 'Browser'
node_js: 12
install: npm ci # we need the native modules here
Expand Down
6 changes: 3 additions & 3 deletions browser-entry.js
Expand Up @@ -210,10 +210,10 @@ Mocha.process = process;
* Expose mocha.
*/

global.Mocha = Mocha;
global.mocha = mocha;
mocha.Mocha = Mocha;
mocha.mocha = mocha;

// this allows test/acceptance/required-tokens.js to pass; thus,
// you can now do `const describe = require('mocha').describe` in a
// browser context (assuming browserification). should fix #880
module.exports = global;
module.exports = Object.assign(mocha, global);

0 comments on commit 86fd8c7

Please sign in to comment.