Skip to content

Commit

Permalink
removed mocha recognizing code
Browse files Browse the repository at this point in the history
  • Loading branch information
Grizzelbee committed Jun 20, 2024
1 parent a52d731 commit ae130e2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1502,8 +1502,6 @@ class dysonAirPurifier extends utils.Adapter {
this.log.warn(
`This adapter has no or no valid configuration. Starting anyway to give you the opportunity to configure it properly. ${error}`
);
// test if code is executed by mocha to exit properly and don't wait for getting configured
if (typeof global.it === 'function') this.terminate('Exiting due to mocha tests...', 11);
this.setState('info.connection', false, true);
}
}
Expand Down

0 comments on commit ae130e2

Please sign in to comment.