fix: handle PersonEnrichmentRequested in test fakes
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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(())
|
||||
|
||||
Reference in New Issue
Block a user