UNPKG

istesequi

Version:

Lightweight and intuitive javascript library

17 lines (13 loc) 373 B
// Testing the main file describe(".ajax(done, before)", function() { it("should be defined", function() { expect(typeof base.ajax).to.equal('function'); }); it("calls before", function(next) { u('form.login').ajax(function(err, body, xhr){ expect(!!xhr).to.equal(true); next(); }); u('form.login').trigger('submit'); }); });