@@ -61,5 +61,8 @@ async fn test_register_short_password_fails() {
|
||||
)
|
||||
.await;
|
||||
let err = result.unwrap_err().to_string();
|
||||
assert!(err.contains("8 characters"), "expected password length error, got: {err}");
|
||||
assert!(
|
||||
err.contains("8 characters"),
|
||||
"expected password length error, got: {err}"
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
use domain::{errors::DomainError, events::DomainEvent, models::UserProfile, value_objects::UserId};
|
||||
use domain::{
|
||||
errors::DomainError, events::DomainEvent, models::UserProfile, value_objects::UserId,
|
||||
};
|
||||
|
||||
use crate::{context::AppContext, users::commands::UpdateProfileFieldsCommand};
|
||||
|
||||
|
||||
@@ -13,7 +13,11 @@ pub async fn execute(
|
||||
.wrapup_stats
|
||||
.get_reviews_with_profiles(&query.scope, &query.date_range)
|
||||
.await?;
|
||||
Ok(wrapup_analyzer::build_report(query.scope, query.date_range, &rows))
|
||||
Ok(wrapup_analyzer::build_report(
|
||||
query.scope,
|
||||
query.date_range,
|
||||
&rows,
|
||||
))
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
||||
Reference in New Issue
Block a user