mirror of
https://github.com/agersant/polaris
synced 2024-11-10 10:14:12 +00:00
Added API test for search without query
This commit is contained in:
parent
ca8f046142
commit
cf67e44d20
1 changed files with 10 additions and 1 deletions
|
@ -348,6 +348,16 @@ fn test_service_recent() {
|
|||
assert_eq!(entries.len(), 3);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_service_search_root() {
|
||||
let mut service = ServiceType::new(&format!("{}{}", TEST_DB_PREFIX, line!()));
|
||||
service.complete_initial_setup();
|
||||
service.login();
|
||||
service.index();
|
||||
let response = service.get_json::<Vec<index::CollectionFile>>("/api/search");
|
||||
assert_eq!(response.status(), StatusCode::OK);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_service_search() {
|
||||
let mut service = ServiceType::new(&format!("{}{}", TEST_DB_PREFIX, line!()));
|
||||
|
@ -363,7 +373,6 @@ fn test_service_search() {
|
|||
_ => panic!(),
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_service_serve() {
|
||||
let mut service = ServiceType::new(&format!("{}{}", TEST_DB_PREFIX, line!()));
|
||||
|
|
Loading…
Reference in a new issue