UNPKG

awesomplete

Version:

http://leaverou.github.io/awesomplete/

16 lines (12 loc) 398 B
describe("blur event", function () { $.fixture("plain"); subject(function () { return new Awesomplete("#plain") }); it("closes completer", function () { spyOn(Awesomplete.prototype, "close"); $.fire(this.subject.input, "blur"); expect(Awesomplete.prototype.close).toHaveBeenCalledWith( { reason: "blur" }, jasmine.any(document.createEvent("HTMLEvents").constructor) ); }); });