Skip to content

Commit

Permalink
test: make less assumptions about test environment
Browse files Browse the repository at this point in the history
Things like the name of the checkout or the path separators can change.
  • Loading branch information
rmg committed Jul 31, 2015
1 parent d0503c2 commit 16f1535
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"config": {
"nyc": {
"exclude": [
"node_modules/"
"node_modules"
]
}
},
Expand Down
4 changes: 2 additions & 2 deletions test/nyc-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('nyc', function () {

var nyc = new NYC()

nyc.cwd.should.match(/nyc\/test\/fixtures/)
nyc.cwd.should.equal(path.resolve(__dirname, './fixtures'))
afterEach()
})
})
Expand Down Expand Up @@ -241,7 +241,7 @@ describe('nyc', function () {
})
nyc.wrap()

istanbul.config.loadFile.calledWithMatch('test/fixtures/.istanbul.yml').should.equal(true)
istanbul.config.loadFile.calledWithMatch(path.join('test', 'fixtures', '.istanbul.yml')).should.equal(true)
istanbul.Instrumenter.calledWith({
coverageVariable: '__coverage__',
embedSource: false,
Expand Down

0 comments on commit 16f1535

Please sign in to comment.