summaryrefslogtreecommitdiffstats
path: root/test/api/gotoSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/api/gotoSpec.js')
-rw-r--r--test/api/gotoSpec.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/api/gotoSpec.js b/test/api/gotoSpec.js
index fd7c242..dedf779 100644
--- a/test/api/gotoSpec.js
+++ b/test/api/gotoSpec.js
@@ -33,7 +33,11 @@ describe("awesomplete.goto", function () {
var handler = $.spyOnEvent(this.subject.input, "awesomplete-highlight");
this.subject.goto(1);
- expect(handler).toHaveBeenCalled();
+ expect(handler).toHaveBeenCalledWith(
+ jasmine.objectContaining({
+ text: jasmine.objectContaining({ label: "item2", value: "item2" })
+ })
+ );
});
describe("with item index > -1", function () {