diff options
Diffstat (limited to 'src/commands/update.rs')
-rw-r--r-- | src/commands/update.rs | 3 |
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 | } |