summaryrefslogtreecommitdiff
path: root/cli/tests/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata')
-rw-r--r--cli/tests/testdata/bundle/shebang_file.bundle.out10
-rw-r--r--cli/tests/testdata/subdir/shebang_file.js5
2 files changed, 15 insertions, 0 deletions
diff --git a/cli/tests/testdata/bundle/shebang_file.bundle.out b/cli/tests/testdata/bundle/shebang_file.bundle.out
new file mode 100644
index 000000000..1be80b68c
--- /dev/null
+++ b/cli/tests/testdata/bundle/shebang_file.bundle.out
@@ -0,0 +1,10 @@
+[WILDCARD]
+#!/usr/bin/env -S deno run --allow-read
+// deno-fmt-ignore-file
+// deno-lint-ignore-file
+// This code was bundled using `deno bundle` and it's not recommended to edit it manually
+
+for (const item of Deno.readDirSync(".")){
+ console.log(item.name);
+}
+
diff --git a/cli/tests/testdata/subdir/shebang_file.js b/cli/tests/testdata/subdir/shebang_file.js
new file mode 100644
index 000000000..1c81be31c
--- /dev/null
+++ b/cli/tests/testdata/subdir/shebang_file.js
@@ -0,0 +1,5 @@
+#!/usr/bin/env -S deno run --allow-read
+
+for (const item of Deno.readDirSync(".")) {
+ console.log(item.name);
+}