Remove unneeded argument

uport
Alex Rea 8 years ago
parent a1175b8eca
commit 844fdc17c1
  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'
* @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) {

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

Loading…
Cancel
Save