Skip to content

Commit

Permalink
feat: adds line number property back to coverage.json
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Mar 20, 2017
1 parent 212cbea commit b03b927
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/istanbul-lib-instrument/src/source-coverage.js
Expand Up @@ -48,7 +48,8 @@ class SourceCoverage extends classes.FileCoverage {
this.data.fnMap[f] = {
name: name,
decl: cloneLocation(decl),
loc: cloneLocation(loc)
loc: cloneLocation(loc),
line: loc.start.line
};
this.data.f[f] = 0;
this.meta.last.f += 1;
Expand All @@ -61,7 +62,8 @@ class SourceCoverage extends classes.FileCoverage {
this.data.branchMap[b] = {
loc: cloneLocation(loc),
type: type,
locations: []
locations: [],
line: loc.start.line
};
this.meta.last.b += 1;
return b;
Expand Down

0 comments on commit b03b927

Please sign in to comment.