From 5163a6cbd8c3ef1ce165b799739b91eebfbebf06 Mon Sep 17 00:00:00 2001 From: Alex Rea Date: Mon, 9 Jan 2017 14:49:39 +0000 Subject: [PATCH] Revert "Remove unneeded argument" This reverts commit f4457fbec31caa80e594ff4a34cdc14f670b9e2a. --- coverageMap.js | 2 +- runCoveredTests.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/coverageMap.js b/coverageMap.js index 3e20f73..d17a0f3 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) { + generate(events, pathPrefix) { 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 d50baf5..ca2763d 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); +coverage.generate(events, './../originalContracts/'); fs.writeFileSync('./coverage.json', JSON.stringify(coverage.coverage));