Skip to content

Commit 6930a2f

Browse files
committed
Add false tests
1 parent 1b3c8bb commit 6930a2f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/src/core/importType.js

+5
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,13 @@ describe('importType(name)', function () {
227227

228228
it('`isExternalModule` works with windows directory separator', function() {
229229
expect(isExternalModule('foo', {}, 'E:\\path\\to\\node_modules\\foo')).to.equal(true)
230+
expect(isExternalModule('foo', {}, '.\\foo')).to.equal(false)
231+
230232
expect(isExternalModule('foo', {
231233
'import/external-module-folders': ['E:\\path\\to\\node_modules'],
232234
}, 'E:\\path\\to\\node_modules\\foo')).to.equal(true)
235+
expect(isExternalModule('foo', {
236+
'import/external-module-folders': ['E:\\path\\to\\node_modules'],
237+
}, '.\\foo')).to.equal(false)
233238
})
234239
})

0 commit comments

Comments
 (0)