summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorKevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com>2020-02-28 06:17:56 -0800
committerGitHub <noreply@github.com>2020-02-28 09:17:56 -0500
commit7255cc9bc089e1257c2119e4c8a089c0b4970e64 (patch)
tree89aa3b88679f87715d918c79b5ffd5a6d50cfba7 /cli/tests
parentb5bf28e68f38396defd50be4ac72ae19a6bf5eb5 (diff)
Support TypeScript eval through `deno eval -T` flag (#4141)
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/030_eval_ts.out1
-rw-r--r--cli/tests/integration_tests.rs6
2 files changed, 7 insertions, 0 deletions
diff --git a/cli/tests/030_eval_ts.out b/cli/tests/030_eval_ts.out
new file mode 100644
index 000000000..190a18037
--- /dev/null
+++ b/cli/tests/030_eval_ts.out
@@ -0,0 +1 @@
+123
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index a326af1e2..843f56a7f 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -788,6 +788,12 @@ itest!(_029_eval {
output: "029_eval.out",
});
+// Ugly parentheses due to whitespace delimiting problem.
+itest!(_030_eval_ts {
+ args: "eval -T console.log((123)as(number))", // 'as' is a TS keyword only
+ output: "030_eval_ts.out",
+});
+
itest!(_033_import_map {
args:
"run --reload --importmap=importmaps/import_map.json importmaps/test.ts",