Skip to content

Commit 3ca1396

Browse files
committed
cmd(init/build): update test
1 parent 07b493d commit 3ca1396

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/manifest/main.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ fn it_checks_has_cdylib_wrong_crate_type() {
4848
fn it_creates_a_package_json_default_path() {
4949
let step = wasm_pack::progressbar::Step::new(1);
5050
let path = ".".to_string();
51-
wasm_pack::command::init::create_pkg_dir(&path, &step).unwrap();
51+
wasm_pack::command::utils::create_pkg_dir(&path, &step).unwrap();
5252
assert!(manifest::write_package_json(&path, &None, false, "", &step).is_ok());
5353
let package_json_path = format!("{}/pkg/package.json", &path);
5454
assert!(fs::metadata(package_json_path).is_ok());
@@ -76,7 +76,7 @@ fn it_creates_a_package_json_default_path() {
7676
fn it_creates_a_package_json_provided_path() {
7777
let step = wasm_pack::progressbar::Step::new(1);
7878
let path = "tests/fixtures/js-hello-world".to_string();
79-
wasm_pack::command::init::create_pkg_dir(&path, &step).unwrap();
79+
wasm_pack::command::utils::create_pkg_dir(&path, &step).unwrap();
8080
assert!(manifest::write_package_json(&path, &None, false, "", &step).is_ok());
8181
let package_json_path = format!("{}/pkg/package.json", &path);
8282
assert!(fs::metadata(package_json_path).is_ok());
@@ -97,7 +97,7 @@ fn it_creates_a_package_json_provided_path() {
9797
fn it_creates_a_package_json_provided_path_with_scope() {
9898
let step = wasm_pack::progressbar::Step::new(1);
9999
let path = "tests/fixtures/scopes".to_string();
100-
wasm_pack::command::init::create_pkg_dir(&path, &step).unwrap();
100+
wasm_pack::command::utils::create_pkg_dir(&path, &step).unwrap();
101101
assert!(
102102
manifest::write_package_json(&path, &Some("test".to_string()), false, "", &step).is_ok()
103103
);
@@ -120,7 +120,7 @@ fn it_creates_a_package_json_provided_path_with_scope() {
120120
fn it_creates_a_pkg_json_with_correct_files_on_node() {
121121
let step = wasm_pack::progressbar::Step::new(1);
122122
let path = ".".to_string();
123-
wasm_pack::command::init::create_pkg_dir(&path, &step).unwrap();
123+
wasm_pack::command::utils::create_pkg_dir(&path, &step).unwrap();
124124
assert!(manifest::write_package_json(&path, &None, false, "nodejs", &step).is_ok());
125125
let package_json_path = format!("{}/pkg/package.json", &path);
126126
assert!(fs::metadata(package_json_path).is_ok());
@@ -149,7 +149,7 @@ fn it_creates_a_pkg_json_with_correct_files_on_node() {
149149
fn it_creates_a_package_json_with_correct_keys_when_types_are_skipped() {
150150
let step = wasm_pack::progressbar::Step::new(1);
151151
let path = ".".to_string();
152-
wasm_pack::command::init::create_pkg_dir(&path, &step).unwrap();
152+
wasm_pack::command::utils::create_pkg_dir(&path, &step).unwrap();
153153
assert!(manifest::write_package_json(&path, &None, true, "", &step).is_ok());
154154
let package_json_path = format!("{}/pkg/package.json", &path);
155155
assert!(fs::metadata(package_json_path).is_ok());

0 commit comments

Comments
 (0)