summaryrefslogtreecommitdiff
path: root/std/node/tests/cjs/cjs_a.js
diff options
context:
space:
mode:
authorKevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com>2019-11-18 22:54:20 -0800
committerRy Dahl <ry@tinyclouds.org>2019-11-19 01:54:20 -0500
commite73a82dc42b3d80bea42482e227c31e5ef01e273 (patch)
tree5c3f26bc19d4ce6b3e42b2fe48f47e1cccbb29fd /std/node/tests/cjs/cjs_a.js
parente6fdb2628fdeeae0c7b06c25214b2edba96364dd (diff)
feat(std/node) add CommonJS require (#3380)
Diffstat (limited to 'std/node/tests/cjs/cjs_a.js')
-rw-r--r--std/node/tests/cjs/cjs_a.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/std/node/tests/cjs/cjs_a.js b/std/node/tests/cjs/cjs_a.js
new file mode 100644
index 000000000..b8f69c857
--- /dev/null
+++ b/std/node/tests/cjs/cjs_a.js
@@ -0,0 +1,10 @@
+/* eslint-disable */
+const { helloB } = require("./cjs_b.js");
+const C = require("./subdir/cjs_c");
+const leftPad = require("left-pad");
+
+function helloA() {
+ return "A";
+}
+
+module.exports = { helloA, helloB, C, leftPad };