Skip to content

Commit

Permalink
fix: 'global.hermione' is not defined when reading tests via 'readTests'
Browse files Browse the repository at this point in the history
  • Loading branch information
eGavr committed Jan 25, 2017
1 parent 8eeb0df commit 64ff66a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
3 changes: 1 addition & 2 deletions lib/runner/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ module.exports = class MainRunner extends QEmitter {

this._pool = new BrowserPool(this._config);

this.on(RunnerEvents.RUNNER_START, () => MochaRunner.init());
this.on(RunnerEvents.RUNNER_END, () => MochaRunner.clean());
MochaRunner.init();
}

run(tests) {
Expand Down
4 changes: 0 additions & 4 deletions lib/runner/mocha-runner/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ module.exports = class MochaRunner extends QEmitter {
MochaAdapter.init();
}

static clean() {
MochaAdapter.clean();
}

static create(config, browserAgent, testSkipper) {
return new MochaRunner(config, browserAgent, testSkipper);
}
Expand Down
4 changes: 0 additions & 4 deletions lib/runner/mocha-runner/mocha-adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ module.exports = class MochaAdapter {
global.hermione = {};
}

static clean() {
delete global.hermione;
}

static create(opts, browserAgent, ctx) {
return new MochaAdapter(opts, browserAgent, ctx);
}
Expand Down

0 comments on commit 64ff66a

Please sign in to comment.