tests(jqLite): add basic tests for the bind/unbind aliases

This commit is contained in:
Michał Gołębiowski
2016-10-05 12:10:35 +02:00
parent 304c765359
commit bb3cfd3d8f
+15
View File
@@ -2323,4 +2323,19 @@ describe('jqLite', function() {
expect(onLoadCallback).toHaveBeenCalledOnce();
});
});
describe('bind/unbind', function() {
if (!_jqLiteMode) return;
it('should alias bind() to on()', function() {
var element = jqLite(a);
expect(element.bind).toBe(element.on);
});
it('should alias unbind() to off()', function() {
var element = jqLite(a);
expect(element.unbind).toBe(element.off);
});
});
});