feat(discovery): add CurseForge and modpack browsing
This commit is contained in:
1 parent
22d5da9f0d
commit
1742f62cd0
38 files changed
+2384
-135
No files matched your search
@@ -89,6 +89,17 @@ fn unchanged_saved_index_reuses_fingerprint_and_skips_provider_query() {
|
||||
assert_eq!(second.manifest.files[0].fingerprint, fingerprint);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn newly_configured_provider_retries_an_unmatched_record() {
|
||||
let resolution = Resolution::Unmatched {
|
||||
checked_at: chrono::Utc::now().timestamp(),
|
||||
providers: vec!["modrinth".to_owned()],
|
||||
};
|
||||
|
||||
assert!(provider_was_not_checked(&resolution, "curseforge"));
|
||||
assert!(!provider_was_not_checked(&resolution, "modrinth"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn directory_packs_are_indexed_without_provider_queries() {
|
||||
let temp = tempfile::tempdir().unwrap();
|
||||
|
||||
Reference in new issue
Block a user