From 875073566eae46a134b0e2dc107c1266440d2b7b Mon Sep 17 00:00:00 2001 From: Kanitkorn Sujautra Date: Mon, 19 Dec 2016 10:20:49 +0700 Subject: [PATCH] fix: bump fileset version (#7) --- package.json | 2 +- test/run-cover.test.js | 2 +- test/run-instrument.test.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 6134a1ad..6e482323 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ }, "dependencies": { "async": "1.x", - "fileset": "0.2.x", + "fileset": "^2.0.2", "istanbul-lib-coverage": "^1.0.0-alpha", "istanbul-lib-hook": "^1.0.0-alpha", "istanbul-lib-instrument": "^1.1.0-alpha", diff --git a/test/run-cover.test.js b/test/run-cover.test.js index a6a12586..55a360a4 100644 --- a/test/run-cover.test.js +++ b/test/run-cover.test.js @@ -122,7 +122,7 @@ describe('run cover', function () { assert.ok(coverageMap); assert.ok(coverageMap[path.resolve(codeRoot, 'context.js')]); assert.ok(coverageMap[path.resolve(codeRoot, 'foo.js')]); - assert.ok(coverageMap[path.resolve(codeRoot, 'node_modules', 'adder.js')]); + assert.ifError(coverageMap[path.resolve(codeRoot, 'node_modules', 'adder.js')]); cb(); }); }); diff --git a/test/run-instrument.test.js b/test/run-instrument.test.js index a3118f27..20736d27 100644 --- a/test/run-instrument.test.js +++ b/test/run-instrument.test.js @@ -144,7 +144,7 @@ describe('run instrument', function () { function (err) { assert.ok(!err); assert.ok(fs.existsSync(outFile('foo.js'))); - assert.ok(fs.existsSync(outFile('node_modules/adder.js'))); + assert.ok(!fs.existsSync(outFile('node_modules/adder.js'))); assert.ok(fs.existsSync(outFile('baseline.raw.json'))); cb(); });