diff options
author | 2023-06-26 20:37:09 -0700 | |
---|---|---|
committer | 2023-06-26 20:39:15 -0700 | |
commit | c96f3b303b07312d320f3f07299aac0f93d4640f (patch) | |
tree | 83a3f0597fec2430bbdbee126dae8fda0ac79640 /test/js/node/module/node-module-module.test.js | |
parent | ecb0bd39b6f7a0a69f0b92ddedc0af5d0e88e945 (diff) | |
download | bun-c96f3b303b07312d320f3f07299aac0f93d4640f.tar.gz bun-c96f3b303b07312d320f3f07299aac0f93d4640f.tar.zst bun-c96f3b303b07312d320f3f07299aac0f93d4640f.zip |
Fix default export of `"module"` modulebun-v0.6.10
Diffstat (limited to 'test/js/node/module/node-module-module.test.js')
-rw-r--r-- | test/js/node/module/node-module-module.test.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/js/node/module/node-module-module.test.js b/test/js/node/module/node-module-module.test.js index 3ced63da1..434bac829 100644 --- a/test/js/node/module/node-module-module.test.js +++ b/test/js/node/module/node-module-module.test.js @@ -1,10 +1,15 @@ import { expect, test } from "bun:test"; import { _nodeModulePaths } from "module"; +import Module from "module"; test("module.globalPaths exists", () => { expect(Array.isArray(require("module").globalPaths)).toBe(true); }); +test("Module exists", () => { + expect(Module).toBeDefined(); +}); + test("_nodeModulePaths() works", () => { expect(() => { _nodeModulePaths(); |