mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
test(meilisearch/search/locales.rs): updates snapshot
Used `cargo insta test` Reviewed with `cargo insta review`
This commit is contained in:
parent
263300b3a3
commit
27527849bb
1 changed files with 3 additions and 6 deletions
|
@ -147,23 +147,20 @@ async fn simple_search() {
|
||||||
.search(
|
.search(
|
||||||
json!({"q": "進撃", "locales": ["jpn"], "attributesToRetrieve": ["id"]}),
|
json!({"q": "進撃", "locales": ["jpn"], "attributesToRetrieve": ["id"]}),
|
||||||
|response, code| {
|
|response, code| {
|
||||||
snapshot!(response, @r###"
|
snapshot!(response, @r#"
|
||||||
{
|
{
|
||||||
"hits": [
|
"hits": [
|
||||||
{
|
{
|
||||||
"id": 852
|
"id": 852
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 853
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"query": "進撃",
|
"query": "進撃",
|
||||||
"processingTimeMs": "[duration]",
|
"processingTimeMs": "[duration]",
|
||||||
"limit": 20,
|
"limit": 20,
|
||||||
"offset": 0,
|
"offset": 0,
|
||||||
"estimatedTotalHits": 2
|
"estimatedTotalHits": 1
|
||||||
}
|
}
|
||||||
"###);
|
"#);
|
||||||
snapshot!(code, @"200 OK");
|
snapshot!(code, @"200 OK");
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue