Skip to content

Commit

Permalink
Add another test
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Feb 14, 2020
1 parent 684b158 commit f0bc600
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/src/core/importType.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,5 +227,8 @@ describe('importType(name)', function () {

it('`isExternalModule` should work with windows directory separator', function() {
expect(isExternalModule('foo', {}, 'E:\\path\\to\\node_modules\\foo')).to.equal(true)
expect(isExternalModule('foo', {
'import/external-module-folders': 'E:\\path\\to\\node_modules',
}, 'E:\\path\\to\\node_modules\\foo')).to.equal(true)
})
})

0 comments on commit f0bc600

Please sign in to comment.