Skip to content

Commit bf2f694

Browse files
committed
add test to ensure unlisten events do not fire
1 parent 900d82b commit bf2f694

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/unit/events.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,11 @@
170170
var fn = el._recallEventHandler(el, 'foo', el, 'missing');
171171
assert.ok(fn, 'should be cached');
172172
});
173+
174+
test('once unlistened, no handler fire', function() {
175+
el.fire('foo');
176+
assert.equal(el._warned.length, 1, 'event should not be handled anymore')
177+
});
173178
});
174179
});
175180
</script>

0 commit comments

Comments
 (0)