summaryrefslogtreecommitdiff
path: root/cli/tests/045_proxy_client.ts
diff options
context:
space:
mode:
authorAndy Hayden <andyhayden1@gmail.com>2019-10-27 06:04:42 -0700
committerRy Dahl <ry@tinyclouds.org>2019-10-27 09:04:42 -0400
commitaec5a646c9218a0a0da62cbcd1f28bc23c242540 (patch)
treee052f0263eb2abc4915dc3710ec44ee34e9ad621 /cli/tests/045_proxy_client.ts
parent51dd91a3ccfd9554bcf69b539f2f748da81c5b12 (diff)
feat: top-level-for-await (#3212)
Diffstat (limited to 'cli/tests/045_proxy_client.ts')
-rw-r--r--cli/tests/045_proxy_client.ts8
1 files changed, 2 insertions, 6 deletions
diff --git a/cli/tests/045_proxy_client.ts b/cli/tests/045_proxy_client.ts
index 3d7003750..221ac57f6 100644
--- a/cli/tests/045_proxy_client.ts
+++ b/cli/tests/045_proxy_client.ts
@@ -1,7 +1,3 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
-async function main(): Promise<void> {
- const res = await fetch("http://localhost:4545/std/examples/colors.ts");
- console.log(`Response http: ${await res.text()}`);
-}
-
-main();
+const res = await fetch("http://localhost:4545/std/examples/colors.ts");
+console.log(`Response http: ${await res.text()}`);