Fix the tests about the nested fields

This commit is contained in:
Kerollmops 2022-05-04 12:10:52 +02:00
parent c46f3587de
commit 5c4c38c79c
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -497,7 +497,7 @@ async fn search_facet_distribution() {
assert_eq!(code, 200, "{}", response);
let dist = response["facetsDistribution"].as_object().unwrap();
dbg!(&dist);
assert_eq!(dist.len(), 2);
assert_eq!(dist.len(), 3);
assert_eq!(
dist["doggos.name"],
json!({ "bobby": 1, "buddy": 1, "gros bill": 1, "turbo": 1, "fast": 1})