Browse Source

Ensure mocha runs on the browser

master
Futago-za Ryuu 3 years ago
parent
commit
fcbfa39102
  1. 2
      docs/.vuepress/public/benchmark-bundle.min.js
  2. 24
      docs/.vuepress/public/test-bundle.min.js
  3. 9
      test/browser.stub.js

2
docs/.vuepress/public/benchmark-bundle.min.js
File diff suppressed because it is too large
View File

24
docs/.vuepress/public/test-bundle.min.js
File diff suppressed because it is too large
View File

9
test/browser.stub.js

@ -7,8 +7,15 @@
require( "mocha/mocha.js" );
mocha.setup( {
reporter: "spec",
ui: "bdd",
} );
const context = require.context( "./", true, /.+\.(spec|test)\.js?$/ );
context.keys().forEach( context );
module.exports = context;
process.nextTick( () => mocha.run() );
Loading…
Cancel
Save