Skip to content

Commit

Permalink
added a test to make sure config still properly overrides settings (#333
Browse files Browse the repository at this point in the history
)
  • Loading branch information
benmosher committed Jun 21, 2016
1 parent decd663 commit a66e7c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resolvers/node/test/paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ describe("default options", function () {
.to.have.property('path')
.equal(path.resolve(__dirname, './data.json'))
})
it("ignores .json files if 'extensions' is redefined", function () {
expect(node.resolve('./data', './test/file.js', { extensions: ['.js'] }))
.to.have.property('found', false)
})
})

0 comments on commit a66e7c7

Please sign in to comment.