1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00
Files
cheat.sh/share/static/awesomplete-gh-pages/test/events/blurSpec.js
T
2017-05-08 21:17:29 +00:00

16 lines
398 B
JavaScript

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)
);
});
});