Skip to content

Commit 0471299

Browse files
committed
chore: test case
1 parent 37f2f22 commit 0471299

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/cli/tests/install.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use assert_cmd::prelude::*;
55
use command_extra::CommandExtra;
66
use pacquet_testing_utils::{
77
bin::{AddMockedRegistry, CommandTempCwd},
8-
fs::{get_all_files, get_all_folders, is_symlink_or_junction},
8+
fs::{get_all_files, get_all_folders, is_symlink_or_junction},
99
panic_after,
1010
};
1111
use pipe_trait::Pipe;
@@ -136,7 +136,7 @@ fn should_install_index_files() {
136136
#[test]
137137
fn should_install_duplicated_dependencies() {
138138
let CommandTempCwd { pacquet, root, workspace, .. } =
139-
CommandTempCwd::init().add_default_npmrc();
139+
CommandTempCwd::init().add_mocked_registry();
140140

141141
eprintln!("Creating package.json...");
142142
let manifest_path = workspace.join("package.json");

crates/testing-utils/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use std::{ thread, sync::mpsc, time::Duration};
1+
use std::{sync::mpsc, thread, time::Duration};
22
pub mod bin;
33
pub mod fs;
44

0 commit comments

Comments
 (0)