mirror of
https://github.com/gissleh/irc.git
synced 2026-10-19 04:12:53 +00:00
Forgot to save unit test
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@ func TestHandle(t *testing.T) {
|
|||||||
event := irc.NewEvent("test", eventName)
|
event := irc.NewEvent("test", eventName)
|
||||||
handled := false
|
handled := false
|
||||||
|
|
||||||
handle := irc.Handle(func(event *irc.Event, client *irc.Client) {
|
irc.Handle(func(event *irc.Event, client *irc.Client) {
|
||||||
t.Log("Got:", event.Kind(), event.Verb())
|
t.Log("Got:", event.Kind(), event.Verb())
|
||||||
|
|
||||||
if event.Kind() == "test" && event.Verb() == eventName {
|
if event.Kind() == "test" && event.Verb() == eventName {
|
||||||
|
|||||||
Reference in New Issue
Block a user