Skip to content

Commit

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

it('`isExternalModule` works with windows directory separator', function() {
expect(isExternalModule('foo', {}, 'E:\\path\\to\\node_modules\\foo')).to.equal(true)
expect(isExternalModule('foo', {}, '.\\foo')).to.equal(false)

expect(isExternalModule('foo', {
'import/external-module-folders': ['E:\\path\\to\\node_modules'],
}, 'E:\\path\\to\\node_modules\\foo')).to.equal(true)
expect(isExternalModule('foo', {
'import/external-module-folders': ['E:\\path\\to\\node_modules'],
}, '.\\foo')).to.equal(false)
})
})

0 comments on commit 6930a2f

Please sign in to comment.