diff options
author | Satya Rohith <me@satyarohith.com> | 2021-02-21 22:28:32 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-21 17:58:32 +0100 |
commit | 06fcfc5c0a2e39f0b723914bb2edb74a99c67bfb (patch) | |
tree | 39f7f2ab171f86ac3dd4dde60f4b1590ec55b5d3 /cli/tests | |
parent | fe1b512820cbdfd2b93ddfc8e935556878339425 (diff) |
feat: add --ext flag to deno eval (#9295)
This PR deprecates the "--ts"/"-T" flag of "deno eval" (which will later be removed in 2.0)
and introduces "--ext" which is used by "deno fmt" for content type selection.
This is to ensure we have a single flag that can be used across subcommands
to select the language (JS/TS).
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/integration_tests.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index bb65f24fa..b82efa904 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -2514,7 +2514,7 @@ console.log("finish"); // Ugly parentheses due to whitespace delimiting problem. itest!(_030_eval_ts { - args: "eval --quiet -T console.log((123)as(number))", // 'as' is a TS keyword only + args: "eval --quiet --ext=ts console.log((123)as(number))", // 'as' is a TS keyword only output: "030_eval_ts.out", }); |