Integrate the sortable-attributes into the settings

This commit is contained in:
Kerollmops 2021-08-24 15:46:14 +02:00
parent 51387b2c80
commit ea4c831de0
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
5 changed files with 28 additions and 5 deletions

View file

@ -42,10 +42,11 @@ 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(), 7);
assert_eq!(settings.keys().len(), 8);
assert_eq!(settings["displayedAttributes"], json!(["*"]));
assert_eq!(settings["searchableAttributes"], json!(["*"]));
assert_eq!(settings["filterableAttributes"], json!([]));
assert_eq!(settings["sortableAttributes"], json!([]));
assert_eq!(settings["distinctAttribute"], json!(null));
assert_eq!(
settings["rankingRules"],