Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit b070766

Browse files
committed
tests(jqLite): add basic tests for the bind/unbind aliases
1 parent e3622b5 commit b070766

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/jqLiteSpec.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2231,4 +2231,19 @@ describe('jqLite', function() {
22312231
expect(onLoadCallback).toHaveBeenCalledOnce();
22322232
});
22332233
});
2234+
2235+
2236+
describe('bind/unbind', function() {
2237+
if (!_jqLiteMode) return;
2238+
2239+
it('should alias bind() to on()', function() {
2240+
var element = jqLite(a);
2241+
expect(element.bind).toBe(element.on);
2242+
});
2243+
2244+
it('should alias unbind() to off()', function() {
2245+
var element = jqLite(a);
2246+
expect(element.unbind).toBe(element.off);
2247+
});
2248+
});
22342249
});

0 commit comments

Comments
 (0)