diff options
Diffstat (limited to 'cli/flags.rs')
-rw-r--r-- | cli/flags.rs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/cli/flags.rs b/cli/flags.rs index 239382e03..decf3cb17 100644 --- a/cli/flags.rs +++ b/cli/flags.rs @@ -2054,6 +2054,30 @@ mod tests { } #[test] + fn install_unstable() { + let r = flags_from_vec_safe(svec![ + "deno", + "install", + "--unstable", + "https://deno.land/std/examples/colors.ts" + ]); + assert_eq!( + r.unwrap(), + Flags { + unstable: true, + subcommand: DenoSubcommand::Install { + name: None, + module_url: "https://deno.land/std/examples/colors.ts".to_string(), + args: svec![], + root: None, + force: false, + }, + ..Flags::default() + } + ); + } + + #[test] fn install_with_args() { let r = flags_from_vec_safe(svec![ "deno", |