mirror of
https://github.com/chubin/cheat.sh.git
synced 2026-06-20 13:16:44 +02:00
16 lines
398 B
JavaScript
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)
|
|
);
|
|
});
|
|
});
|