summaryrefslogtreecommitdiff
path: root/src/commands/update.rs
diff options
context:
space:
mode:
authorfxqnlr <[email protected]>2023-01-26 17:23:06 +0100
committerfxqnlr <[email protected]>2023-01-26 17:23:06 +0100
commit57ab6addda10a49c18dc09208dfb319c0205e869 (patch)
treeeec6fd465a113d15c819c64a94bc04d425f0e842 /src/commands/update.rs
parent1890d59428dfcca861ea1b7820411d80cc60d713 (diff)
downloadmodlist-57ab6addda10a49c18dc09208dfb319c0205e869.tar
modlist-57ab6addda10a49c18dc09208dfb319c0205e869.tar.gz
modlist-57ab6addda10a49c18dc09208dfb319c0205e869.zip
Todos; fixed input with "-"
Diffstat (limited to 'src/commands/update.rs')
-rw-r--r--src/commands/update.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands/update.rs b/src/commands/update.rs
index f8bdb82..f71f537 100644
--- a/src/commands/update.rs
+++ b/src/commands/update.rs
@@ -139,6 +139,7 @@ async fn download_updates_test() {
139 139
140 use crate::{modrinth::{Version, VersionFile, Hash, VersionType}, Modloader, List}; 140 use crate::{modrinth::{Version, VersionFile, Hash, VersionType}, Modloader, List};
141 141
142 let config = Cfg::init("modlist.toml").unwrap();
142 let current_list = List { id: String::from("..."), mc_version: String::from("..."), modloader: Modloader::Forge, download_folder: String::from("./dl") }; 143 let current_list = List { id: String::from("..."), mc_version: String::from("..."), modloader: Modloader::Forge, download_folder: String::from("./dl") };
143 144
144 let versions = vec![Version { 145 let versions = vec![Version {
@@ -171,5 +172,5 @@ async fn download_updates_test() {
171 "fabric".to_string() 172 "fabric".to_string()
172 ] 173 ]
173 }]; 174 }];
174 assert!(download_versions(current_list, versions).await.is_ok()) 175 assert!(download_versions(current_list, config, versions).await.is_ok())
175} 176}