summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/echo.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/echo.ts')
-rw-r--r--cli/tests/testdata/echo.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/tests/testdata/echo.ts b/cli/tests/testdata/echo.ts
new file mode 100644
index 000000000..84a645433
--- /dev/null
+++ b/cli/tests/testdata/echo.ts
@@ -0,0 +1,6 @@
+function echo(args: string[]) {
+ const msg = args.join(", ");
+ Deno.stdout.write(new TextEncoder().encode(msg));
+}
+
+echo(Deno.args);