Skip to content

Commit

Permalink
fix: address edge-cases related to --all when instrumentation is disa…
Browse files Browse the repository at this point in the history
…bled (#482)
  • Loading branch information
wbyoung authored and bcoe committed Jan 17, 2017
1 parent 8b58c05 commit 8c58d68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/instrumenters/noop.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ var readInitialCoverage = require('istanbul-lib-instrument').readInitialCoverage

function NOOP () {
return {
instrumentSync: function (code) {
instrumentSync: function (code, filename) {
var extracted = readInitialCoverage(code)
if (extracted) {
this.fileCoverage = new FileCoverage(extracted.coverageData)
} else {
this.fileCoverage = null
this.fileCoverage = new FileCoverage(filename)
}
return code
},
Expand Down

0 comments on commit 8c58d68

Please sign in to comment.