UNPKG

@kickscondor/umbrellajs

Version:

Lightweight and intuitive javascript library

24 lines (18 loc) 599 B
// Testing the main file describe(".find(selector)", function() { it("should be a function", function() { expect(typeof base.find).to.equal('function'); }); it("can be empty and it selects all", function() { expect(base.find().length).to.equal(base.find('*').length); }); it("can select the list ul", function() { expect(base.find('ul').length).to.equal(1); }); it("cannot select body", function() { expect(base.find('body').length).to.equal(0); }); it("doesn't select duplicates", function(){ expect(u("*").find('.brand a').length).to.equal(1); }); });