mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
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.
This commit is contained in:
parent
f3326eebd6
commit
7f15126f23
40 changed files with 778 additions and 719 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue