summaryrefslogtreecommitdiff
path: root/std/node/tests/cjs
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2021-02-02 19:05:46 +0800
committerGitHub <noreply@github.com>2021-02-02 12:05:46 +0100
commit6abf126c2a7a451cded8c6b5e6ddf1b69c84055d (patch)
treefd94c013a19fcb38954844085821ec1601c20e18 /std/node/tests/cjs
parenta2b5d44f1aa9d64f448a2a3cc2001272e2f60b98 (diff)
chore: remove std directory (#9361)
This removes the std folder from the tree. Various parts of the tests are pretty tightly dependent on std (47 direct imports and 75 indirect imports, not counting the cli tests that use them as fixtures) so I've added std as a submodule for now.
Diffstat (limited to 'std/node/tests/cjs')
-rw-r--r--std/node/tests/cjs/cjs_a.js11
-rw-r--r--std/node/tests/cjs/cjs_b.js6
-rw-r--r--std/node/tests/cjs/cjs_builtin.js11
-rw-r--r--std/node/tests/cjs/cjs_cycle_a.js4
-rw-r--r--std/node/tests/cjs/cjs_cycle_b.js4
-rw-r--r--std/node/tests/cjs/cjs_throw.js6
l---------std/node/tests/cjs/dir1
-rw-r--r--std/node/tests/cjs/index.js2
-rw-r--r--std/node/tests/cjs/subdir/cjs_c.js2
-rw-r--r--std/node/tests/cjs/subdir/dir/index.js4
10 files changed, 0 insertions, 51 deletions
diff --git a/std/node/tests/cjs/cjs_a.js b/std/node/tests/cjs/cjs_a.js
deleted file mode 100644
index b2dae2b6b..000000000
--- a/std/node/tests/cjs/cjs_a.js
+++ /dev/null
@@ -1,11 +0,0 @@
-// deno-lint-ignore-file no-undef
-// deno-lint-ignore-file
-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 };
diff --git a/std/node/tests/cjs/cjs_b.js b/std/node/tests/cjs/cjs_b.js
deleted file mode 100644
index 2bbf75809..000000000
--- a/std/node/tests/cjs/cjs_b.js
+++ /dev/null
@@ -1,6 +0,0 @@
-function helloB() {
- return "B";
-}
-
-// deno-lint-ignore no-undef
-module.exports = { helloB };
diff --git a/std/node/tests/cjs/cjs_builtin.js b/std/node/tests/cjs/cjs_builtin.js
deleted file mode 100644
index 3a971f605..000000000
--- a/std/node/tests/cjs/cjs_builtin.js
+++ /dev/null
@@ -1,11 +0,0 @@
-// deno-lint-ignore-file no-undef
-// deno-lint-ignore-file
-const fs = require("fs");
-const util = require("util");
-const path = require("path");
-
-module.exports = {
- readFileSync: fs.readFileSync,
- isNull: util.isNull,
- extname: path.extname,
-};
diff --git a/std/node/tests/cjs/cjs_cycle_a.js b/std/node/tests/cjs/cjs_cycle_a.js
deleted file mode 100644
index d73da20b9..000000000
--- a/std/node/tests/cjs/cjs_cycle_a.js
+++ /dev/null
@@ -1,4 +0,0 @@
-// deno-lint-ignore-file no-undef
-module.exports = false;
-require("./cjs_cycle_a");
-module.exports = true;
diff --git a/std/node/tests/cjs/cjs_cycle_b.js b/std/node/tests/cjs/cjs_cycle_b.js
deleted file mode 100644
index bd18094ce..000000000
--- a/std/node/tests/cjs/cjs_cycle_b.js
+++ /dev/null
@@ -1,4 +0,0 @@
-// deno-lint-ignore-file no-undef
-module.exports = false;
-require("./cjs_cycle_b");
-module.exports = true;
diff --git a/std/node/tests/cjs/cjs_throw.js b/std/node/tests/cjs/cjs_throw.js
deleted file mode 100644
index 3def8cc85..000000000
--- a/std/node/tests/cjs/cjs_throw.js
+++ /dev/null
@@ -1,6 +0,0 @@
-function hello() {
- throw new Error("bye");
-}
-
-// deno-lint-ignore no-undef
-module.exports = { hello };
diff --git a/std/node/tests/cjs/dir b/std/node/tests/cjs/dir
deleted file mode 120000
index abec30059..000000000
--- a/std/node/tests/cjs/dir
+++ /dev/null
@@ -1 +0,0 @@
-./subdir/dir \ No newline at end of file
diff --git a/std/node/tests/cjs/index.js b/std/node/tests/cjs/index.js
deleted file mode 100644
index d55928a89..000000000
--- a/std/node/tests/cjs/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-// deno-lint-ignore no-undef
-module.exports = { isIndex: true };
diff --git a/std/node/tests/cjs/subdir/cjs_c.js b/std/node/tests/cjs/subdir/cjs_c.js
deleted file mode 100644
index b24caa0c4..000000000
--- a/std/node/tests/cjs/subdir/cjs_c.js
+++ /dev/null
@@ -1,2 +0,0 @@
-// deno-lint-ignore no-undef
-module.exports = "C";
diff --git a/std/node/tests/cjs/subdir/dir/index.js b/std/node/tests/cjs/subdir/dir/index.js
deleted file mode 100644
index 0b4d11386..000000000
--- a/std/node/tests/cjs/subdir/dir/index.js
+++ /dev/null
@@ -1,4 +0,0 @@
-// deno-lint-ignore-file no-undef
-const C = require("../cjs_c");
-
-module.exports = { C };