Skip to content

Commit 158cd80

Browse files
committed
[Tests] use resolve, an actual dep, instead of builtin-modules, an erstwhile transitive dep
1 parent b4bad0e commit 158cd80

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/src/core/importType.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,16 @@ describe('importType(name)', function () {
9090
})
9191

9292
it("should return 'external' for module from 'node_modules' with default config", function() {
93-
expect(importType('builtin-modules', context)).to.equal('external')
93+
expect(importType('resolve', context)).to.equal('external')
9494
})
9595

9696
it("should return 'internal' for module from 'node_modules' if 'node_modules' missed in 'external-module-folders'", function() {
9797
const foldersContext = testContext({ 'import/external-module-folders': [] })
98-
expect(importType('builtin-modules', foldersContext)).to.equal('internal')
98+
expect(importType('resolve', foldersContext)).to.equal('internal')
9999
})
100100

101101
it("should return 'external' for module from 'node_modules' if 'node_modules' contained in 'external-module-folders'", function() {
102102
const foldersContext = testContext({ 'import/external-module-folders': ['node_modules'] })
103-
expect(importType('builtin-modules', foldersContext)).to.equal('external')
103+
expect(importType('resolve', foldersContext)).to.equal('external')
104104
})
105105
})

0 commit comments

Comments
 (0)