diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2021-07-20 18:29:17 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-20 18:29:17 +0900 |
commit | 65a1724acb039c6115d360f7a62248a7850d33b7 (patch) | |
tree | c111cc4e5fe7144e2313bfc2ba966fba26b240e1 | |
parent | 55632266e9f84b456626d3536b4e2ee8365f600f (diff) |
test(cli): add test case for 'deno test --watch' (#11434)
-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", |