From 5e7ca445ff3415ab12170a7fb133a0f80147ed41 Mon Sep 17 00:00:00 2001 From: yuta0801 Date: Wed, 4 Mar 2020 17:40:56 +0900 Subject: Fix `deno install` file name including extra dot on Windows (#4243) --- cli/tests/integration_tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/tests') diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index f6319ea81..6c853f089 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -189,7 +189,7 @@ fn installer_test_local_module_run() { .expect("Failed to install"); let mut file_path = temp_dir.path().join("echo_test"); if cfg!(windows) { - file_path = file_path.with_extension(".cmd"); + file_path = file_path.with_extension("cmd"); } assert!(file_path.exists()); let path_var_name = if cfg!(windows) { "Path" } else { "PATH" }; @@ -237,7 +237,7 @@ fn installer_test_remote_module_run() { .expect("Failed to install"); let mut file_path = temp_dir.path().join("echo_test"); if cfg!(windows) { - file_path = file_path.with_extension(".cmd"); + file_path = file_path.with_extension("cmd"); } assert!(file_path.exists()); let path_var_name = if cfg!(windows) { "Path" } else { "PATH" }; -- cgit v1.2.3