From 7f15126f23d97f20a4fb33e43136cd4d13825863 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Sat, 10 Jun 2023 11:09:45 -0400 Subject: chore(tests): test_util - Add `PathRef` (#19450) This adds a new `PathRef` struct to test_util for making it easier to work with paths in test code. I'm going to expand on this more in the future. --- cli/tools/installer.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'cli/tools') diff --git a/cli/tools/installer.rs b/cli/tools/installer.rs index 07606d5f8..03c2ffdcf 100644 --- a/cli/tools/installer.rs +++ b/cli/tools/installer.rs @@ -1022,9 +1022,7 @@ mod tests { let result = create_install_shim( Flags { - config_flag: ConfigFlag::Path( - config_file_path.to_string_lossy().to_string(), - ), + config_flag: ConfigFlag::Path(config_file_path.to_string()), ..Flags::default() }, InstallFlags { @@ -1137,7 +1135,7 @@ mod tests { let result = create_install_shim( Flags { - import_map_path: Some(import_map_path.to_string_lossy().to_string()), + import_map_path: Some(import_map_path.to_string()), ..Flags::default() }, InstallFlags { -- cgit v1.2.3