fix tests

This commit is contained in:
ManyTheFish 2024-12-04 14:35:20 +01:00
parent 953a82ca04
commit fc1df5793c

View File

@ -224,10 +224,10 @@ async fn add_documents_and_deactivate_facet_search() {
assert_eq!(code, 400, "{}", response); assert_eq!(code, 400, "{}", response);
snapshot!(response, @r###" snapshot!(response, @r###"
{ {
"message": "Facet search is disabled for this index", "message": "The facet search is disabled for this index",
"code": "invalid_search_disabled_facet_search", "code": "invalid_facet_search_disabled",
"type": "invalid_request", "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); assert_eq!(code, 400, "{}", response);
snapshot!(response, @r###" snapshot!(response, @r###"
{ {
"message": "Facet search is disabled for this index", "message": "The facet search is disabled for this index",
"code": "invalid_search_disabled_facet_search", "code": "invalid_facet_search_disabled",
"type": "invalid_request", "type": "invalid_request",
"link": "https://docs.meilisearch.com/errors#invalid_search_disabled_facet_search" "link": "https://docs.meilisearch.com/errors#invalid_facet_search_disabled"
} }
"###); "###);
} }