Release v1.0.0 #2

Merged
Rene Nochebuena merged 5 commits from release/v1.0.0 into main 2025-04-13 09:55:45 -06:00
Showing only changes of commit 0c1694c947 - Show all commits

View File

@ -136,6 +136,17 @@ func Test_UnknownEvent(t *testing.T) {
} }
} }
func Test_DispatchEventWithError(t *testing.T) {
d := NewDispatcher()
d.RegisterCommandHandler(testCommand{}, &testCommandHandler{})
d.RegisterEventHandler(testEvent{}, &testErrorEventHandler{})
err := d.DispatchEvent(context.Background(), testEvent{})
if err == nil {
t.Fatal("expected error")
}
}
func Test_Error(t *testing.T) { func Test_Error(t *testing.T) {
d := NewDispatcher() d := NewDispatcher()
d.RegisterCommandHandler(testCommand{}, &testErrorHandler{}) d.RegisterCommandHandler(testCommand{}, &testErrorHandler{})