Skip to content

Commit 7098c3d

Browse files
mgolpetebacondarwin
authored andcommitted
tests(jqLite): add basic tests for the bind/unbind aliases
1 parent c1e6a91 commit 7098c3d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/jqLiteSpec.js

+15
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)