fix: handle PersonEnrichmentRequested in test fakes

This commit is contained in:
2026-06-11 13:43:37 +02:00
parent b2a41db290
commit 7437ed89ad
2 changed files with 8 additions and 0 deletions

View File

@@ -83,6 +83,13 @@ impl domain::ports::PersonCommand for NoopPersonCommand {
) -> Result<(u64, bool), domain::errors::DomainError> {
Ok((0, false))
}
async fn update_enrichment(
&self,
_: &domain::models::PersonId,
_: &domain::models::PersonEnrichmentData,
) -> Result<(), domain::errors::DomainError> {
Ok(())
}
}
#[tokio::test]

View File

@@ -66,6 +66,7 @@ impl EventHandler for RecordingHandler {
DomainEvent::GoalCreated { .. }
| DomainEvent::GoalUpdated { .. }
| DomainEvent::GoalDeleted { .. } => "goal",
DomainEvent::PersonEnrichmentRequested { .. } => "person_enrichment_requested",
};
self.calls.lock().unwrap().push(label);
Ok(())