Skip to content

Commit

Permalink
add test to ensure unlisten events do not fire
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Oct 6, 2015
1 parent 900d82b commit bf2f694
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/unit/events.html
Expand Up @@ -170,6 +170,11 @@
var fn = el._recallEventHandler(el, 'foo', el, 'missing');
assert.ok(fn, 'should be cached');
});

test('once unlistened, no handler fire', function() {
el.fire('foo');
assert.equal(el._warned.length, 1, 'event should not be handled anymore')
});
});
});
</script>
Expand Down

0 comments on commit bf2f694

Please sign in to comment.