UNPKG

istesequi

Version:

Lightweight and intuitive javascript library

16 lines (13 loc) 457 B
// Testing the main file describe(".closest(selector)", function() { afterEach(function(){ // A previous bug that would change the inner of the original reference expect(base.nodes.length).to.equal(1); }); it("should be a function", function() { expect(typeof base.closest).to.equal('function'); }); it("can select the children of ul", function() { expect(base.find('li').closest('ul').nodes.length).to.equal(1); }); });