Revert "Remove unneeded argument"

This reverts commit f4457fbec31caa80e594ff4a34cdc14f670b9e2a.
uport
Alex Rea 8 years ago
parent 844fdc17c1
commit 5163a6cbd8
  1. 2
      coverageMap.js
  2. 2
      runCoveredTests.js

@ -65,7 +65,7 @@ module.exports = class CoverageMap {
* @param {String} relative path to host contracts eg: './../contracts' * @param {String} relative path to host contracts eg: './../contracts'
* @return {Object} coverage map. * @return {Object} coverage map.
*/ */
generate(events) { generate(events, pathPrefix) {
for (let idx = 0; idx < events.length; idx++) { for (let idx = 0; idx < events.length; idx++) {
const event = JSON.parse(events[idx]); const event = JSON.parse(events[idx]);
if (event.topics.indexOf(lineTopic) >= 0) { if (event.topics.indexOf(lineTopic) >= 0) {

@ -49,7 +49,7 @@ events = fs.readFileSync('./allFiredEvents').toString().split('\n')
events.pop(); events.pop();
//The pop here isn't a bug - there is an empty line at the end of this file, so we //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. //don't want to include it as an event.
coverage.generate(events); coverage.generate(events, './../originalContracts/');
fs.writeFileSync('./coverage.json', JSON.stringify(coverage.coverage)); fs.writeFileSync('./coverage.json', JSON.stringify(coverage.coverage));

Loading…
Cancel
Save