diff options
Diffstat (limited to 'test/api/selectSpec.js')
-rw-r--r-- | test/api/selectSpec.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/api/selectSpec.js b/test/api/selectSpec.js index f972142..4224301 100644 --- a/test/api/selectSpec.js +++ b/test/api/selectSpec.js @@ -66,7 +66,9 @@ describe("awesomplete.select", function () { spyOn(this.subject, "close"); this.subject.select(this.selectArgument); - expect(this.subject.close).toHaveBeenCalled(); + expect(this.subject.close).toHaveBeenCalledWith({ + reason: 'select' + }); }); it("fires awesomplete-selectcomplete event", function () { |