aboutsummaryrefslogtreecommitdiffstats
path: root/test/jqLiteSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/jqLiteSpec.js')
-rw-r--r--test/jqLiteSpec.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/jqLiteSpec.js b/test/jqLiteSpec.js
index c5e92c0f..e42e9f14 100644
--- a/test/jqLiteSpec.js
+++ b/test/jqLiteSpec.js
@@ -300,6 +300,14 @@ describe('jqLite', function(){
expect(element.parent().length).toEqual(0);
});
});
+ describe('next', function(){
+ it('should return next sibling', function(){
+ var element = jqLite('<div><b>b</b><i>i</i></div>');
+ var b = element.find('b');
+ var i = element.find('i');
+ expect(b.next()).toJqEqual([i]);
+ });
+ });
describe('find', function(){
it('should find child by name', function(){
var root = jqLite('<div><div>text</div></div>');