fix(@embark/mocha-tests): change self to this in mocha-tests

This commit is contained in:
Jonathan Rainville 2020-02-13 13:21:09 -05:00 committed by Iuri Matias
parent e65c4d26e0
commit c07ac55d70

View File

@ -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) {