mirror of
https://github.com/modrinth/code.git
synced 2026-08-30 11:36:05 +00:00
fix: tests
This commit is contained in:
@@ -49,9 +49,10 @@ pub async fn search_users_returns_compact_prefix_matches_with_exact_first() {
|
||||
assert_eq!(users.len(), 2);
|
||||
assert_eq!(users[0]["username"], "User");
|
||||
assert_eq!(users[1]["username"], "userland");
|
||||
assert!(users.iter().all(|user| user["avatar_url"].is_string()));
|
||||
assert!(users.iter().all(|user| {
|
||||
user.as_object().is_some_and(|object| object.len() == 3)
|
||||
user.as_object().is_some_and(|object| {
|
||||
object.len() == 3 && object.contains_key("avatar_url")
|
||||
})
|
||||
}));
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user