summaryrefslogtreecommitdiff
path: root/cli/tests/echo.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-01-31 17:34:50 +0100
committerGitHub <noreply@github.com>2020-01-31 17:34:50 +0100
commite1697421e2c00508cd78976b6ec586e056530c30 (patch)
treef7d2a8501bfb91cbf2453784895a46d5e3737381 /cli/tests/echo.ts
parentc7a2a33ea1a3245bfc1b9af1db2282ef8e3f7ab3 (diff)
chore: remove std/installer, port installer tests to Rust (#3843)
Diffstat (limited to 'cli/tests/echo.ts')
-rw-r--r--cli/tests/echo.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/tests/echo.ts b/cli/tests/echo.ts
new file mode 100644
index 000000000..bded2fd04
--- /dev/null
+++ b/cli/tests/echo.ts
@@ -0,0 +1,6 @@
+function echo(args: string[]): void {
+ const msg = args.join(", ");
+ Deno.stdout.write(new TextEncoder().encode(msg));
+}
+
+echo(Deno.args);