summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Mitchell <32021055+mitch292@users.noreply.github.com>2020-11-10 04:41:33 -0500
committerGitHub <noreply@github.com>2020-11-10 10:41:33 +0100
commit97a9620a0197c46c0aeaab1b609d3c8316804425 (patch)
tree952120b96abb6439467008282d60c7d3986de54f
parent4cc919a742cc39122b6308d53df86b370f99b911 (diff)
test(cli/upgrade): remove test_compose_url_to_exec (#8329)
-rw-r--r--cli/upgrade.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/cli/upgrade.rs b/cli/upgrade.rs
index e67e88d93..2bc28ec7d 100644
--- a/cli/upgrade.rs
+++ b/cli/upgrade.rs
@@ -274,18 +274,3 @@ fn test_find_version() {
let url = "<html><body>You are being <a href=\"https://github.com/denoland/deno/releases/tag/v0.36.0\">redirected</a>.</body></html>";
assert_eq!(find_version(url).unwrap(), "0.36.0".to_string());
}
-
-#[test]
-fn test_compose_url_to_exec() {
- let v = semver_parse("0.0.1").unwrap();
- let url = compose_url_to_exec(&v).unwrap();
- #[cfg(windows)]
- assert_eq!(url.as_str(), "https://github.com/denoland/deno/releases/download/v0.0.1/deno-x86_64-pc-windows-msvc.zip");
- #[cfg(target_os = "macos")]
- assert_eq!(
- url.as_str(),
- "https://github.com/denoland/deno/releases/download/v0.0.1/deno-x86_64-apple-darwin.zip"
- );
- #[cfg(target_os = "linux")]
- assert_eq!(url.as_str(), "https://github.com/denoland/deno/releases/download/v0.0.1/deno-x86_64-unknown-linux-gnu.zip");
-}