From c07ac55d70d000a8d1df02d59aadb33d3d594cd8 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Thu, 13 Feb 2020 13:21:09 -0500 Subject: [PATCH] fix(@embark/mocha-tests): change `self` to `this` in mocha-tests --- packages/plugins/mocha-tests/src/lib/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugins/mocha-tests/src/lib/index.js b/packages/plugins/mocha-tests/src/lib/index.js index 1578c24dfd..c0099e4146 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) {