extend emitter test
This commit is contained in:
parent
42a8a837ee
commit
a0f80cae71
@ -29,6 +29,7 @@ func TestEventEmitter(t *testing.T) {
|
||||
ee.AddListener(handler)
|
||||
ee.Emit("my-event", "test")
|
||||
ee.RemoveListener(handler)
|
||||
ee.Emit("my-event", "test")
|
||||
|
||||
if handler.count != 1 {
|
||||
t.Fatal("Count not 0")
|
||||
|
Loading…
x
Reference in New Issue
Block a user