Skip to content

Commit

Permalink
Add regression test for children filtering
Browse files Browse the repository at this point in the history
The filtering bug in the `children` method was indirectly resolved by
commit 0464dd8 .
  • Loading branch information
jugglinmike committed Dec 20, 2013
1 parent 28c45f0 commit 024ac31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/api.traversing.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ describe('$(...)', function() {
expect($('ul', fruits).children('.lulz')).to.have.length(0);
});

it('should only match immediate children, not ancestors');
it('should only match immediate children, not ancestors', function() {
expect($(food).children('li')).to.have.length(0);
});

});

Expand Down

0 comments on commit 024ac31

Please sign in to comment.