update test

This commit is contained in:
gorogoroumaru 2020-10-10 06:13:27 +00:00 committed by GitHub
parent c3bcd7a410
commit eb240c8b60
2 changed files with 18 additions and 2 deletions

View File

@ -1,4 +1,4 @@
use std::collections::{BTreeMap, BTreeSet, HashSet};
use std::collections::{BTreeMap, BTreeSet};
use actix_web::{delete, get, post};
use actix_web::{web, HttpResponse};

View File

@ -786,7 +786,23 @@ async fn test_facets_distribution_attribute() {
let expected = json!({
"isIndexing": false,
"fieldsDistribution":{},
"numberOfDocuments":77,
"fieldsDistribution":{
"age":77,
"gender":77,
"phone":77,
"name":77,
"registered":77,
"latitude":77,
"email":77,
"tags":77,
"longitude":77,
"color":77,
"address":77,
"balance":77,
"about":77,
"picture":77,
},
});
assert_json_eq!(expected, response, ordered: true);