mirror of
https://github.com/chubin/cheat.sh.git
synced 2026-06-20 21:26:44 +02:00
27 lines
594 B
JavaScript
27 lines
594 B
JavaScript
describe("awesomplete.opened", function () {
|
|
|
|
$.fixture("plain");
|
|
|
|
subject(function () { return new Awesomplete("#plain") });
|
|
|
|
describe("with newly created completer", function () {
|
|
it("is false", function () {
|
|
expect(this.subject.opened).toBe(false);
|
|
});
|
|
});
|
|
|
|
describe("with opened completer", function () {
|
|
it("is true", function () {
|
|
this.subject.open();
|
|
expect(this.subject.opened).toBe(true);
|
|
});
|
|
});
|
|
|
|
describe("with closed completer", function () {
|
|
it("is false", function () {
|
|
this.subject.close();
|
|
expect(this.subject.opened).toBe(false);
|
|
});
|
|
});
|
|
});
|