From d81a100b59005ca809d1f17a5d92d32a9e5c1803 Mon Sep 17 00:00:00 2001 From: kdeng00 Date: Mon, 3 Nov 2025 13:01:14 -0500 Subject: [PATCH] tsk-204: Changing name of test payload function --- src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index ae721f1..71e30fe 100644 --- a/src/main.rs +++ b/src/main.rs @@ -612,7 +612,7 @@ mod tests { app: &axum::Router, song_queue_id: &uuid::Uuid, ) -> Result { - let payload = super::payload_data::queue_metadata_payload_data(&song_queue_id).await; + let payload = super::payload_data::queue_metadata(&song_queue_id).await; let req = axum::http::Request::builder() .method(axum::http::Method::POST) @@ -902,9 +902,8 @@ mod tests { } } - // TODO: Change the name of the function to be more expressive and put into it's own module pub mod payload_data { - pub async fn queue_metadata_payload_data(song_queue_id: &uuid::Uuid) -> serde_json::Value { + pub async fn queue_metadata(song_queue_id: &uuid::Uuid) -> serde_json::Value { serde_json::json!( { "song_queue_id": song_queue_id,