You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
508 B
Rust

use crate::{info, search, search_by, SearchField};
#[tokio::test]
async fn it_searches_by_name() {
let packages = search("yay").await.unwrap();
assert!(packages.len() > 0)
}
#[tokio::test]
async fn it_searches_by_maintainer() {
let packages = search_by(SearchField::Maintainer, "trivernis")
.await
.unwrap();
assert!(packages.len() > 0)
}
#[tokio::test]
async fn it_returns_information() {
let packages = info(["yay"]).await.unwrap();
assert!(packages.len() > 0)
}