summaryrefslogtreecommitdiffstats
path: root/test/api/selectSpec.js
diff options
context:
space:
mode:
authorVladislav Zarakovsky <vlad.zar@gmail.com>2016-02-01 12:49:34 +0300
committerVladislav Zarakovsky <vlad.zar@gmail.com>2016-02-01 12:49:34 +0300
commit71d52f767ca9d5114332bcb1faff56696f0c31d2 (patch)
treedd8144a9623345108ae291c199a90eaf66c157dc /test/api/selectSpec.js
parentdd4db9083127c70e9e71822a9e75cdcf48e54601 (diff)
downloadawesomplete-71d52f767ca9d5114332bcb1faff56696f0c31d2.zip
awesomplete-71d52f767ca9d5114332bcb1faff56696f0c31d2.tar.gz
awesomplete-71d52f767ca9d5114332bcb1faff56696f0c31d2.tar.bz2
Add item data to awesomplete-select event
Diffstat (limited to 'test/api/selectSpec.js')
-rw-r--r--test/api/selectSpec.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/api/selectSpec.js b/test/api/selectSpec.js
index 8d8a186..84895b1 100644
--- a/test/api/selectSpec.js
+++ b/test/api/selectSpec.js
@@ -47,6 +47,7 @@ describe("awesomplete.select", function () {
expect(handler).toHaveBeenCalledWith(
jasmine.objectContaining({
text: expectedTxt,
+ data: expectedTxt,
origin: this.selectArgument || this.subject.ul.children[0]
})
);