Skip to content

Commit

Permalink
test(cli): add test case for 'deno test --watch' (denoland#11434)
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k committed Jul 20, 2021
1 parent 5563226 commit 65a1724
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions cli/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3474,6 +3474,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![
Expand Down

0 comments on commit 65a1724

Please sign in to comment.