diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-05-18 15:20:32 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-05-18 15:20:32 +0100 |
commit | 2d1ac91f08c01eda30fc279d5fe8d976f779c7a6 (patch) | |
tree | 6161334b25afbbe0d76fcec605589655d995f501 /spec/util_events_spec.lua | |
parent | 7dc998bdae74b9afe9fc9c28bdbfdcd784df3401 (diff) | |
download | prosody-2d1ac91f08c01eda30fc279d5fe8d976f779c7a6.tar.gz prosody-2d1ac91f08c01eda30fc279d5fe8d976f779c7a6.zip |
Fix wrong tests committed with 7b621a4a2e8d
Diffstat (limited to 'spec/util_events_spec.lua')
-rw-r--r-- | spec/util_events_spec.lua | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/spec/util_events_spec.lua b/spec/util_events_spec.lua index e8bce737..fee60f8f 100644 --- a/spec/util_events_spec.lua +++ b/spec/util_events_spec.lua @@ -208,26 +208,5 @@ describe("util.events", function () assert.spy(h).was_called(2); end); end); - - describe("chaining", function () - local e2; - before_each(function () - e2 = events.new(e); - h2 = spy.new(function () end); - end); - it("should fire parent handlers when an event is fired", function () - e.add_handler("myevent", h); - e2.add_handler("myevent", h2); - e2.fire_event("myevent", "abc"); - assert.spy(h).was_called(1); - assert.spy(h).was_called.with("abc"); - assert.spy(h2).was_called(1); - assert.spy(h2).was_called.with("abc"); - end); - it("should handle changes in the parent's handlers", function () - end); - it("should fire wrappers in child and parent", function () - end); - end); end); end); |