Skip to content

Commit

Permalink
small refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
harshit-bs committed Jun 14, 2023
1 parent cd70959 commit 9765075
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/runner/cli/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,9 @@ class CliRunner {
}

setupEventHub() {
if (this.isRegisterEventHandlersCallbackExistsInGlobal() && !NightwatchEventHub.present) {
if (this.isRegisterEventHandlersCallbackExistsInGlobal() && !NightwatchEventHub.isAvailable) {
NightwatchEventHub.runner = this.testRunner.type;
NightwatchEventHub.isAvailable = true;
NightwatchEventHub.present = true;

const {globals} = this.test_settings;
const {plugins} = this.globals;
Expand Down

0 comments on commit 9765075

Please sign in to comment.