vuejs-autocomplete
vuejs-autocomplete copied to clipboard
Emit selected object on Enter
Changed the emit of the enter
event, to also return the selected object (like the select() method).
Pull Request Test Coverage Report for Build 29
- 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
- No unchanged relevant lines lost coverage.
- Overall coverage remained the same at 96.244%
Totals | |
---|---|
Change from base Build 26: | 0.0% |
Covered Lines: | 150 |
Relevant Lines: | 153 |
💛 - Coveralls
Hi, thanks for you contribution - happy to support this but it looks like you need to update the tests to reflect this change. Also while you are there we should emit the same object as click selecting as seen here: https://github.com/charliekassel/vuejs-autocomplete/blob/master/src/components/Autocomplete.vue#L334-L337
Tests: https://github.com/charliekassel/vuejs-autocomplete/blob/master/test/unit/specs/ResultsInteraction.spec.js#L127
Test can then be updated to expect(wrapper.emitted().enter[0][0].value).toEqual('abc')