From fc1df5793cb5fa8d462081f0e4f1dad511a8746a Mon Sep 17 00:00:00 2001 From: ManyTheFish Date: Wed, 4 Dec 2024 14:35:20 +0100 Subject: [PATCH] fix tests --- crates/meilisearch/tests/search/facet_search.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/meilisearch/tests/search/facet_search.rs b/crates/meilisearch/tests/search/facet_search.rs index 418cb4da4..23f312490 100644 --- a/crates/meilisearch/tests/search/facet_search.rs +++ b/crates/meilisearch/tests/search/facet_search.rs @@ -224,10 +224,10 @@ async fn add_documents_and_deactivate_facet_search() { assert_eq!(code, 400, "{}", response); snapshot!(response, @r###" { - "message": "Facet search is disabled for this index", - "code": "invalid_search_disabled_facet_search", + "message": "The facet search is disabled for this index", + "code": "invalid_facet_search_disabled", "type": "invalid_request", - "link": "https://docs.meilisearch.com/errors#invalid_search_disabled_facet_search" + "link": "https://docs.meilisearch.com/errors#invalid_facet_search_disabled" } "###); } @@ -255,10 +255,10 @@ async fn deactivate_facet_search_and_add_documents() { assert_eq!(code, 400, "{}", response); snapshot!(response, @r###" { - "message": "Facet search is disabled for this index", - "code": "invalid_search_disabled_facet_search", + "message": "The facet search is disabled for this index", + "code": "invalid_facet_search_disabled", "type": "invalid_request", - "link": "https://docs.meilisearch.com/errors#invalid_search_disabled_facet_search" + "link": "https://docs.meilisearch.com/errors#invalid_facet_search_disabled" } "###); }