mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
fix most content file error
This commit is contained in:
parent
e107f1b282
commit
99144b1419
3 changed files with 26 additions and 7 deletions
|
@ -560,6 +560,7 @@ async fn error_add_missing_payload_ndjson_documents() {
|
|||
let status_code = res.status();
|
||||
let body = test::read_body(res).await;
|
||||
let response: Value = serde_json::from_slice(&body).unwrap_or_default();
|
||||
dbg!(&response);
|
||||
assert_eq!(status_code, 400);
|
||||
assert_eq!(response["message"], json!(r#"A ndjson payload is missing."#));
|
||||
assert_eq!(response["code"], json!("missing_payload"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue