aboutsummaryrefslogtreecommitdiff
path: root/test/js/node/module/node-module-module.test.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-06-26 20:37:09 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-06-26 20:39:15 -0700
commitc96f3b303b07312d320f3f07299aac0f93d4640f (patch)
tree83a3f0597fec2430bbdbee126dae8fda0ac79640 /test/js/node/module/node-module-module.test.js
parentecb0bd39b6f7a0a69f0b92ddedc0af5d0e88e945 (diff)
downloadbun-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.js5
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();