Skip to content

Commit

Permalink
fix(@embark/mocha-tests): change self to this in mocha-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jrainville authored and iurimatias committed Feb 26, 2020
1 parent e65c4d2 commit c07ac55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/plugins/mocha-tests/src/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c07ac55

Please sign in to comment.