Skip to content

Commit

Permalink
clean up config tests
Browse files Browse the repository at this point in the history
Remove tests for config.nyc entries in package.json. Using the fixture
package.json for testing. Clean up config in actual package.json that was there
for test purposes only.
  • Loading branch information
novemberborn committed Feb 15, 2016
1 parent 0b45e56 commit 520862e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
3 changes: 0 additions & 3 deletions package.json
Expand Up @@ -34,9 +34,6 @@
"test/source-map-cache.js",
"index.covered.js",
"test/fixtures/_generateCoverage.js"
],
"extension": [
".es6"
]
},
"standard": {
Expand Down
20 changes: 2 additions & 18 deletions test/src/nyc-test.js
Expand Up @@ -69,37 +69,21 @@ describe('nyc', function () {
})

describe('config', function () {
it("loads 'exclude' patterns from package.json#config.nyc", function () {
it("loads 'exclude' patterns from package.json#nyc", function () {
var nyc = new NYC({
cwd: path.resolve(__dirname, '../fixtures')
})

nyc.exclude.length.should.eql(5)
})

it("loads 'exclude' patterns from package.json#nyc", function () {
var nyc = new NYC({
cwd: path.resolve(__dirname, '../..')
})

nyc.exclude.length.should.eql(19)
})

it("loads 'extension' patterns from package.json#config.nyc", function () {
it("loads 'extension' patterns from package.json#nyc", function () {
var nyc = new NYC({
cwd: path.resolve(__dirname, '../fixtures')
})

nyc.extensions.length.should.eql(3)
})

it("loads 'extension' from package.json#nyc", function () {
var nyc = new NYC({
cwd: path.resolve(__dirname, '../..')
})

nyc.extensions.length.should.eql(2)
})
})

describe('_prepGlobPatterns', function () {
Expand Down

0 comments on commit 520862e

Please sign in to comment.