summaryrefslogtreecommitdiff
path: root/cli/tools/installer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tools/installer.rs')
-rw-r--r--cli/tools/installer.rs20
1 files changed, 10 insertions, 10 deletions
diff --git a/cli/tools/installer.rs b/cli/tools/installer.rs
index 756395d65..686e127df 100644
--- a/cli/tools/installer.rs
+++ b/cli/tools/installer.rs
@@ -401,8 +401,8 @@ mod tests {
use super::*;
use std::process::Command;
- use tempfile::TempDir;
use test_util::testdata_path;
+ use test_util::TempDir;
#[test]
fn install_infer_name_from_url() {
@@ -479,7 +479,7 @@ mod tests {
#[test]
fn install_unstable() {
- let temp_dir = TempDir::new().unwrap();
+ let temp_dir = TempDir::new();
let bin_dir = temp_dir.path().join("bin");
std::fs::create_dir(&bin_dir).unwrap();
@@ -663,7 +663,7 @@ mod tests {
#[test]
fn install_local_module() {
- let temp_dir = TempDir::new().unwrap();
+ let temp_dir = TempDir::new();
let bin_dir = temp_dir.path().join("bin");
std::fs::create_dir(&bin_dir).unwrap();
let local_module = env::current_dir().unwrap().join("echo_server.ts");
@@ -694,7 +694,7 @@ mod tests {
#[test]
fn install_force() {
- let temp_dir = TempDir::new().unwrap();
+ let temp_dir = TempDir::new();
let bin_dir = temp_dir.path().join("bin");
std::fs::create_dir(&bin_dir).unwrap();
@@ -755,7 +755,7 @@ mod tests {
#[test]
fn install_with_config() {
- let temp_dir = TempDir::new().unwrap();
+ let temp_dir = TempDir::new();
let bin_dir = temp_dir.path().join("bin");
let config_file_path = temp_dir.path().join("test_tsconfig.json");
let config = "{}";
@@ -791,7 +791,7 @@ mod tests {
#[cfg(not(windows))]
#[test]
fn install_shell_escaping() {
- let temp_dir = TempDir::new().unwrap();
+ let temp_dir = TempDir::new();
let bin_dir = temp_dir.path().join("bin");
std::fs::create_dir(&bin_dir).unwrap();
@@ -826,7 +826,7 @@ mod tests {
#[test]
fn install_unicode() {
- let temp_dir = TempDir::new().unwrap();
+ let temp_dir = TempDir::new();
let bin_dir = temp_dir.path().join("bin");
std::fs::create_dir(&bin_dir).unwrap();
let unicode_dir = temp_dir.path().join("Magnús");
@@ -866,7 +866,7 @@ mod tests {
#[test]
fn install_with_import_map() {
- let temp_dir = TempDir::new().unwrap();
+ let temp_dir = TempDir::new();
let bin_dir = temp_dir.path().join("bin");
let import_map_path = temp_dir.path().join("import_map.json");
let import_map_url = Url::from_file_path(&import_map_path).unwrap();
@@ -914,7 +914,7 @@ mod tests {
// Regression test for https://github.com/denoland/deno/issues/10556.
#[test]
fn install_file_url() {
- let temp_dir = TempDir::new().unwrap();
+ let temp_dir = TempDir::new();
let bin_dir = temp_dir.path().join("bin");
let module_path = fs::canonicalize(testdata_path().join("cat.ts")).unwrap();
let file_module_string =
@@ -950,7 +950,7 @@ mod tests {
#[test]
fn uninstall_basic() {
- let temp_dir = TempDir::new().unwrap();
+ let temp_dir = TempDir::new();
let bin_dir = temp_dir.path().join("bin");
std::fs::create_dir(&bin_dir).unwrap();