chore(http): unify the pagination of the index and documents route behind a common type

This commit is contained in:
Tamo 2022-06-02 13:31:46 +02:00
parent d6dd234914
commit 12b5eabd5d
No known key found for this signature in database
GPG key ID: 20CD8020AFA88D69
4 changed files with 100 additions and 35 deletions

View file

@ -827,7 +827,7 @@ async fn add_larger_dataset() {
..Default::default()
})
.await;
assert_eq!(code, 200);
assert_eq!(code, 200, "failed with `{}`", response);
assert_eq!(response["results"].as_array().unwrap().len(), 77);
}