From 26124e6436cdd0b0abf3eb5db56bf6da6b298d5c Mon Sep 17 00:00:00 2001 From: gorogoroumaru Date: Sat, 10 Oct 2020 02:56:44 +0000 Subject: [PATCH] update test --- meilisearch-http/tests/index.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/meilisearch-http/tests/index.rs b/meilisearch-http/tests/index.rs index 29fbed070..8fdf0b31f 100644 --- a/meilisearch-http/tests/index.rs +++ b/meilisearch-http/tests/index.rs @@ -777,3 +777,17 @@ async fn update_existing_primary_key_is_error() { assert_eq!(response["errorCode"], "primary_key_already_present"); assert_eq!(response["errorType"], "invalid_request_error"); } + +#[actix_rt::test] +async fn test_facets_distribution_attribute() { + let mut server = common::Server::test_server().await; + + let (response, _status_code) = server.get_index_stats().await; + + let expected = json!({ + "isIndexing": false, + "fieldsDistribution":{}, + }); + + assert_json_eq!(expected, response, ordered: true); +} \ No newline at end of file