cargo fmt
This commit is contained in:
+6
-3
@@ -355,7 +355,10 @@ mod request {
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn get_scheduled_messages(app: &axum::Router, id: &uuid::Uuid) -> Result<axum::response::Response, axum::http::Error> {
|
||||
pub async fn get_scheduled_messages(
|
||||
app: &axum::Router,
|
||||
id: &uuid::Uuid,
|
||||
) -> Result<axum::response::Response, axum::http::Error> {
|
||||
let uri = format!(
|
||||
"{}?id={}",
|
||||
textsender_api::caller::endpoints::GET_SCHEDULE_MESSAGE,
|
||||
@@ -668,11 +671,11 @@ async fn test_get_scheduled_message() {
|
||||
if let Some(parsed_id) = id {
|
||||
match request::message::scheduling::get_scheduled_messages(&app, &parsed_id).await {
|
||||
Ok(response) => {
|
||||
let resp = util::get_resp_data::<
|
||||
let resp = util::get_resp_data::<
|
||||
textsender_api::caller::message::scheduling::response::GetScheduledMessageResponse,
|
||||
>(response)
|
||||
.await;
|
||||
assert_eq!(false, resp.data.is_empty(), "Should not be empty");
|
||||
assert_eq!(false, resp.data.is_empty(), "Should not be empty");
|
||||
}
|
||||
Err(err) => {
|
||||
assert!(false, "Error: {err:?}");
|
||||
|
||||
Reference in New Issue
Block a user