Skip to content

Commit

Permalink
Fix init tests
Browse files Browse the repository at this point in the history
  • Loading branch information
elizabethengelman committed Feb 28, 2024
1 parent ab1b567 commit 3c5a468
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/soroban-cli/src/commands/contract/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -661,11 +661,10 @@ mod tests {
) {
let package_json_path = project_dir.join("package.json");
let package_json_str = read_to_string(package_json_path).unwrap();
println!("package json: {package_json_str} ");
assert!(package_json_str.contains(&format!("\"name\":\"{expected_package_name}\"")));
assert!(package_json_str.contains(&format!("\"name\": \"{expected_package_name}\"")));

let package_lock_json_path = project_dir.join("package-lock.json");
let package_lock_json_str = read_to_string(package_lock_json_path).unwrap();
assert!(package_lock_json_str.contains(&format!("\"name\":\"{expected_package_name}\"")));
assert!(package_lock_json_str.contains(&format!("\"name\": \"{expected_package_name}\"")));
}
}

0 comments on commit 3c5a468

Please sign in to comment.