diff options
Diffstat (limited to 'test/api/selectSpec.js')
-rw-r--r-- | test/api/selectSpec.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/api/selectSpec.js b/test/api/selectSpec.js index 1117341..f972142 100644 --- a/test/api/selectSpec.js +++ b/test/api/selectSpec.js @@ -73,7 +73,11 @@ describe("awesomplete.select", function () { var handler = $.spyOnEvent(this.subject.input, "awesomplete-selectcomplete"); this.subject.select(this.selectArgument); - expect(handler).toHaveBeenCalled(); + expect(handler).toHaveBeenCalledWith( + jasmine.objectContaining({ + text: jasmine.objectContaining({ label: expectedTxt, value: expectedTxt }) + }) + ); }); }); |