We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a43469 commit 15179ebCopy full SHA for 15179eb
lib/adapters/MochaAdapter.js
@@ -11,8 +11,9 @@ export default class MochaAdapter extends EventEmitter {
11
mocha.reporter((runner) => {
12
this.runner = runner
13
14
- let constructor = this.origReporter.bind(this.mocha, this.runner)
15
- let origReporterInstance = new constructor()
+ // eslint-disable-next-line no-unused-vars
+ let origReporterInstance = new (this.origReporter.bind(this.mocha,
16
+ this.runner))()
17
18
runner.on('start', this.onStart.bind(this))
19
runner.on('suite', this.onSuite.bind(this))
0 commit comments