Skip to content

Commit

Permalink
fix: upgrade to newer versions of source-map, signal-exit, and instru…
Browse files Browse the repository at this point in the history
…ment (somewhat frightening)
  • Loading branch information
Benjamin Coe committed Sep 13, 2016
1 parent 4d2ad3f commit aa06525
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,17 @@
"glob": "^7.0.6",
"istanbul-lib-coverage": "^1.0.0",
"istanbul-lib-hook": "^1.0.0-alpha.4",
"istanbul-lib-instrument": "^1.1.1",
"istanbul-lib-instrument": "^1.1.3",
"istanbul-lib-report": "^1.0.0-alpha.3",
"istanbul-lib-source-maps": "^1.0.0",
"istanbul-lib-source-maps": "^1.0.1",
"istanbul-reports": "^1.0.0-alpha.8",
"md5-hex": "^1.2.0",
"micromatch": "^2.3.11",
"mkdirp": "^0.5.0",
"pkg-up": "^1.0.0",
"resolve-from": "^2.0.0",
"rimraf": "^2.5.4",
"signal-exit": "^3.0.0",
"signal-exit": "^3.0.1",
"spawn-wrap": "^1.2.4",
"test-exclude": "^2.1.2",
"yargs": "^5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/check-instrumented.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ function probe () {}
// When instrumented there will be references to variables like
// __cov_pwkoI2PYHp3LJXkn_erl1Q in the probe() source.
module.exports = function () {
return /\b__cov_\B/.test(probe + '')
return /\bcov_\B/.test(probe + '')
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ function probe () {}
// When instrumented there will be references to variables like
// __cov_pwkoI2PYHp3LJXkn_erl1Q in the probe() source.
module.exports = function () {
return /\b__cov_\B/.test(probe + '')
return /\bcov_\B/.test(probe + '')
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ function probe () {}
// When instrumented there will be references to variables like
// __cov_pwkoI2PYHp3LJXkn_erl1Q in the probe() source.
module.exports = function () {
return /\b__cov_\B/.test(probe + '')
return /\bcov_\B/.test(probe + '')
}
12 changes: 6 additions & 6 deletions test/src/nyc-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ describe('nyc', function () {
var report = reports[0][notLoadedPath]

reports.length.should.equal(1)
report.s['0'].should.equal(0)
report.s['1'].should.equal(0)
report.s['2'].should.equal(0)
return done()
})

Expand All @@ -335,12 +335,12 @@ describe('nyc', function () {
reports.length.should.equal(1)

var report1 = reports[0][notLoadedPath1]
report1.s['0'].should.equal(0)
report1.s['1'].should.equal(0)
report1.s['2'].should.equal(0)

var report2 = reports[0][notLoadedPath2]
report2.s['0'].should.equal(0)
report2.s['1'].should.equal(0)
report2.s['2'].should.equal(0)

return done()
})
Expand All @@ -361,8 +361,8 @@ describe('nyc', function () {
var report = reports[0][notLoadedPath]

reports.length.should.equal(1)
report.s['0'].should.equal(1)
report.s['1'].should.equal(1)
report.s['2'].should.equal(1)

return done()
})
Expand All @@ -385,7 +385,7 @@ describe('nyc', function () {
var report = reports[0][needsTranspilePath]

reports.length.should.equal(1)
report.s['1'].should.equal(0)
report.s['0'].should.equal(0)

fs.unlinkSync(needsTranspilePath)
return done()
Expand Down Expand Up @@ -414,7 +414,7 @@ describe('nyc', function () {
var report = reports[0][needsTranspilePath]

reports.length.should.equal(1)
report.s['1'].should.equal(0)
report.s['0'].should.equal(0)

fs.unlinkSync(needsTranspilePath)
return done()
Expand Down

0 comments on commit aa06525

Please sign in to comment.