diff options
Diffstat (limited to 'cli/flags.rs')
-rw-r--r-- | cli/flags.rs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/cli/flags.rs b/cli/flags.rs index 8c7b0a9e7..f75aa5b22 100644 --- a/cli/flags.rs +++ b/cli/flags.rs @@ -3475,6 +3475,29 @@ mod tests { } #[test] + fn test_watch() { + let r = flags_from_vec(svec!["deno", "test", "--watch"]); + assert_eq!( + r.unwrap(), + Flags { + subcommand: DenoSubcommand::Test { + no_run: false, + doc: false, + fail_fast: None, + filter: None, + allow_none: false, + quiet: false, + shuffle: None, + include: None, + concurrent_jobs: 1, + }, + watch: true, + ..Flags::default() + } + ); + } + + #[test] fn bundle_with_cafile() { let r = flags_from_vec(svec![ "deno", |