fix most content file error

This commit is contained in:
Irevoire 2022-10-22 13:59:21 +02:00 committed by Clément Renault
parent e107f1b282
commit 99144b1419
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
3 changed files with 26 additions and 7 deletions

View file

@ -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"));