diff --git a/coverageMap.js b/coverageMap.js index d17a0f3..3e20f73 100644 --- a/coverageMap.js +++ b/coverageMap.js @@ -65,7 +65,7 @@ module.exports = class CoverageMap { * @param {String} relative path to host contracts eg: './../contracts' * @return {Object} coverage map. */ - generate(events, pathPrefix) { + generate(events) { for (let idx = 0; idx < events.length; idx++) { const event = JSON.parse(events[idx]); if (event.topics.indexOf(lineTopic) >= 0) { diff --git a/runCoveredTests.js b/runCoveredTests.js index ca2763d..d50baf5 100644 --- a/runCoveredTests.js +++ b/runCoveredTests.js @@ -49,7 +49,7 @@ events = fs.readFileSync('./allFiredEvents').toString().split('\n') events.pop(); //The pop here isn't a bug - there is an empty line at the end of this file, so we //don't want to include it as an event. -coverage.generate(events, './../originalContracts/'); +coverage.generate(events); fs.writeFileSync('./coverage.json', JSON.stringify(coverage.coverage));