-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: bump test runner version (#2784)
- Loading branch information
1 parent
9aa9aaf
commit 1978358
Showing
1 changed file
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -682,7 +682,7 @@ const PRETTIER_URL: &str = "https://deno.land/[email protected]/prettier/main.ts"; | |
/// Used for `deno install...` subcommand | ||
const INSTALLER_URL: &str = "https://deno.land/[email protected]/installer/mod.ts"; | ||
/// Used for `deno test...` subcommand | ||
const TEST_RUNNER_URL: &str = "https://deno.land/std@c44e536/testing/runner.ts"; | ||
const TEST_RUNNER_URL: &str = "https://deno.land/std@15afc61/testing/runner.ts"; | ||
|
||
/// These are currently handled subcommands. | ||
/// There is no "Help" subcommand because it's handled by `clap::App` itself. | ||
|
@@ -1743,4 +1743,33 @@ mod tests { | |
assert_eq!(subcommand, DenoSubcommand::Run); | ||
assert_eq!(argv, svec!["deno", "script.ts"]) | ||
} | ||
|
||
#[test] | ||
fn test_flags_from_vec_36() { | ||
let (flags, subcommand, argv) = flags_from_vec(svec![ | ||
"deno", | ||
"test", | ||
"--exclude", | ||
"some_dir/", | ||
"**/*_test.ts" | ||
]); | ||
assert_eq!( | ||
flags, | ||
DenoFlags { | ||
allow_read: true, | ||
..DenoFlags::default() | ||
} | ||
); | ||
assert_eq!(subcommand, DenoSubcommand::Run); | ||
assert_eq!( | ||
argv, | ||
svec![ | ||
"deno", | ||
TEST_RUNNER_URL, | ||
"--exclude", | ||
"some_dir/", | ||
"**/*_test.ts" | ||
] | ||
) | ||
} | ||
} |