mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-08-01 11:20:04 +00:00
test(meilisearch/search/locales.rs): updates snapshot
Used `cargo insta test` Reviewed with `cargo insta review`
This commit is contained in:
@ -169,23 +169,20 @@ async fn simple_search() {
|
|||||||
// chinese
|
// chinese
|
||||||
index
|
index
|
||||||
.search(json!({"q": "进击", "attributesToRetrieve": ["id"]}), |response, code| {
|
.search(json!({"q": "进击", "attributesToRetrieve": ["id"]}), |response, code| {
|
||||||
snapshot!(response, @r###"
|
snapshot!(response, @r#"
|
||||||
{
|
{
|
||||||
"hits": [
|
"hits": [
|
||||||
{
|
{
|
||||||
"id": 853
|
"id": 853
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 852
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"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");
|
||||||
})
|
})
|
||||||
.await;
|
.await;
|
||||||
|
Reference in New Issue
Block a user