From 3c5a468b59b0c304ddc0acf6d185f0bdaeb4fa78 Mon Sep 17 00:00:00 2001 From: Elizabeth Engelman <4752801+elizabethengelman@users.noreply.github.com> Date: Wed, 28 Feb 2024 11:28:31 -0500 Subject: [PATCH] Fix init tests --- cmd/soroban-cli/src/commands/contract/init.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/soroban-cli/src/commands/contract/init.rs b/cmd/soroban-cli/src/commands/contract/init.rs index b3a940de5e..8bdeb83cb3 100644 --- a/cmd/soroban-cli/src/commands/contract/init.rs +++ b/cmd/soroban-cli/src/commands/contract/init.rs @@ -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}\""))); } }