Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save craigtaub/9adf8d6c5e97b6c44b53cbab4870c6d6 to your computer and use it in GitHub Desktop.
Save craigtaub/9adf8d6c5e97b6c44b53cbab4870c6d6 to your computer and use it in GitHub Desktop.
function Mocha(options) {
this.files = [];
this.options = options;
// lib/context.js. empty context
function Context() {}
// root suite
this.suite = new Suite("", new Context(), true);
this.ui(options.ui).reporter(options.reporter);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment