summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration_tests.rs5
-rw-r--r--cli/tests/top_level_await.ts3
2 files changed, 8 insertions, 0 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index 99ab54a02..0e0407180 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -567,3 +567,8 @@ itest!(top_level_await {
args: "--allow-read top_level_await.js",
output: "top_level_await.out",
});
+
+itest!(top_level_await_ts {
+ args: "--allow-read top_level_await.ts",
+ output: "top_level_await.out",
+});
diff --git a/cli/tests/top_level_await.ts b/cli/tests/top_level_await.ts
new file mode 100644
index 000000000..65de253ea
--- /dev/null
+++ b/cli/tests/top_level_await.ts
@@ -0,0 +1,3 @@
+const buf: Uint8Array = await Deno.readFile("hello.txt");
+const n: number = await Deno.stdout.write(buf);
+console.log(`\n\nwrite ${n}`);