diff --git a/packages/plugins/mocha-tests/src/lib/index.js b/packages/plugins/mocha-tests/src/lib/index.js index 1578c24df..c0099e414 100644 --- a/packages/plugins/mocha-tests/src/lib/index.js +++ b/packages/plugins/mocha-tests/src/lib/index.js @@ -203,8 +203,8 @@ class MochaTestRunner { this.fs.readFile(file, (err, data) => { if (err) { - self.logger.error(__('Error reading file %s', file)); - self.logger.error(err); + this.logger.error(__('Error reading file %s', file)); + this.logger.error(err); seriesCb(null, 1); } if (data.toString().search(/contract\(|describe\(/) === -1) {