diff options
author | Nayeem Rahman <muhammed.9939@gmail.com> | 2020-02-11 09:29:36 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-11 10:29:36 +0100 |
commit | 701ce9b3342647cf01cb23c4fc28bc99ce0aa8c1 (patch) | |
tree | e7e36d47453f8f2fe16027ed54d37fee75b153dc /cli/tests/integration_tests.rs | |
parent | 79b3bc05d6de520f1df73face1744ae3d8be0bb8 (diff) |
refactor: Use PathBuf for paths in flag parsing and whitelists (#3955)
* Use PathBuf for DenoSubcommand::Bundle's out_file
* Use PathBuf for DenoSubcommand::Format's files
* Use PathBuf for DenoSubcommand::Install's dir
* Use PathBuf for read/write whitelists
Diffstat (limited to 'cli/tests/integration_tests.rs')
-rw-r--r-- | cli/tests/integration_tests.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index a42dd439e..013e4c41b 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -108,7 +108,7 @@ fn installer_test_local_module_run() { let local_module_str = local_module.to_string_lossy(); installer::install( DenoFlags::default(), - Some(temp_dir.path().to_string_lossy().to_string()), + Some(temp_dir.path().to_path_buf()), "echo_test", &local_module_str, vec!["hello".to_string()], @@ -156,7 +156,7 @@ fn installer_test_remote_module_run() { let temp_dir = TempDir::new().expect("tempdir fail"); installer::install( DenoFlags::default(), - Some(temp_dir.path().to_string_lossy().to_string()), + Some(temp_dir.path().to_path_buf()), "echo_test", "http://localhost:4545/cli/tests/echo.ts", vec!["hello".to_string()], |