Cleaning touches

This commit is contained in:
Andre Medeiros 2018-08-09 15:46:10 -04:00 committed by Iuri Matias
parent 676f15fb49
commit 19c81e187b
3 changed files with 6 additions and 5 deletions

View File

@ -36,7 +36,6 @@ const parseResponse = function(ipc, resBody){
} catch(e) {
return; // Response is not a json. Do nothing
}
console.log(jsonO);
if(commList[jsonO.id]){
commList[jsonO.id].transactionHash = jsonO.result;
transactions[jsonO.result] = {commListId: jsonO.id};

View File

@ -238,7 +238,7 @@ class ContractSource {
break;
default:
console.log(`Don't know how to handle node type ${node.nodeType}`);
// console.log(`Don't know how to handle node type ${node.nodeType}`);
break;
}

View File

@ -1,7 +1,7 @@
/*global web3*/
const fs = require('fs');
const process = require('process');
const fs = require('../../core/fs');
const ContractSources = require('./contract_sources');
// Set up the web3 extension
@ -23,8 +23,10 @@ class CodeCoverage {
this.seenTransactions = {};
var self = this;
process.on('exit', (code) => {
fs.writeFileSync('/tmp/coverage.json', JSON.stringify(this.coverageReport));
process.on('exit', (_code) => {
const coverageReportPath = fs.dappPath('.embark', 'coverage.json');
fs.writeFileSync(coverageReportPath, JSON.stringify(self.coverageReport));
});
}