Plug the pagination.limited_to setting

This commit is contained in:
Kerollmops 2022-06-09 10:17:55 +02:00
parent b96399d24b
commit 1e3dcbea3f
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
6 changed files with 84 additions and 16 deletions

View file

@ -49,7 +49,7 @@ async fn get_settings() {
let (response, code) = index.settings().await;
assert_eq!(code, 200);
let settings = response.as_object().unwrap();
assert_eq!(settings.keys().len(), 10);
assert_eq!(settings.keys().len(), 11);
assert_eq!(settings["displayedAttributes"], json!(["*"]));
assert_eq!(settings["searchableAttributes"], json!(["*"]));
assert_eq!(settings["filterableAttributes"], json!([]));
@ -70,7 +70,13 @@ async fn get_settings() {
assert_eq!(
settings["faceting"],
json!({
"maxValuesPerFacet": 100
"maxValuesPerFacet": 100,
})
);
assert_eq!(
settings["pagination"],
json!({
"limitedTo": 1000,
})
);
}