diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2019-08-17 00:20:36 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-08-16 18:20:36 -0400 |
commit | 1978358328e869a0e27c91dff848753437989382 (patch) | |
tree | d5a945d4fd37a804b5d97f575b9a8fb5675e4e95 /cli/flags.rs | |
parent | 9aa9aafbab934b483977683e1ee430abb277833f (diff) |
chore: bump test runner version (#2784)
Diffstat (limited to 'cli/flags.rs')
-rw-r--r-- | cli/flags.rs | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/cli/flags.rs b/cli/flags.rs index e1cd3dffc..5cffd1994 100644 --- a/cli/flags.rs +++ b/cli/flags.rs @@ -682,7 +682,7 @@ const PRETTIER_URL: &str = "https://deno.land/std@v0.11/prettier/main.ts"; /// Used for `deno install...` subcommand const INSTALLER_URL: &str = "https://deno.land/std@v0.11/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" + ] + ) + } } |