Formatting

This commit is contained in:
kdeng00
2025-04-26 16:07:22 -04:00
parent 603852203e
commit 781d541fbe
2 changed files with 8 additions and 8 deletions
-1
View File
@@ -47,7 +47,6 @@ mod song_queue {
pub id: uuid::Uuid, pub id: uuid::Uuid,
pub filename: String, pub filename: String,
pub status: String, pub status: String,
// pub data: Vec<u8>,
} }
pub async fn insert( pub async fn insert(
+8 -7
View File
@@ -307,16 +307,17 @@ mod tests {
.method(axum::http::Method::GET) .method(axum::http::Method::GET)
.uri(crate::callers::endpoints::NEXTQUEUESONG) .uri(crate::callers::endpoints::NEXTQUEUESONG)
.header(axum::http::header::CONTENT_TYPE, "application/json") .header(axum::http::header::CONTENT_TYPE, "application/json")
.body(axum::body::Body::empty()).unwrap(); .body(axum::body::Body::empty())
.unwrap();
match app.clone().oneshot(fetch_req).await { match app.clone().oneshot(fetch_req).await {
Ok(response) => { Ok(response) => {
let body = axum::body::to_bytes(response.into_body(), usize::MAX) let body = axum::body::to_bytes(response.into_body(), usize::MAX)
.await .await
.unwrap(); .unwrap();
let resp: crate::callers::song::response::fetch_queue_song::Response = let resp: crate::callers::song::response::fetch_queue_song::Response =
serde_json::from_slice(&body).unwrap(); serde_json::from_slice(&body).unwrap();
assert_eq!(false, resp.data.is_empty(), "Should not be empty"); assert_eq!(false, resp.data.is_empty(), "Should not be empty");
} }
Err(err) => { Err(err) => {
assert!(false, "Error: {:?}", err); assert!(false, "Error: {:?}", err);