Skip to content
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.

Commit

Permalink
[release] 1.0.0 - Resolves #109 for primary changes required to get a…
Browse files Browse the repository at this point in the history
… fully qualified 1.0.0 release.
  • Loading branch information
Stephen Rivas Jr committed Jun 17, 2016
1 parent 96f4ee7 commit e386910
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v1.0.0 - 17 June 2016
--------------------------------------

- Additional failing tests fixed, pre-publish build with 1.0.0 changes

v1.0.0-rc6 - 5 June 2016
--------------------------------------

Expand Down
12 changes: 9 additions & 3 deletions build/lib/__tests__/Autocomplete-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,16 +283,22 @@ describe('Autocomplete click event handlers', function () {
var autocompleteInputWrapper = autocompleteWrapper.find('input');

it('should update input value from selected menu item and close the menu', function () {
var value = 'Ar';
autocompleteWrapper.setProps({
value: value,
onSelect: function onSelect(v) {
value = v;
}
});
autocompleteWrapper.setState({ isOpen: true });
autocompleteInputWrapper.simulate('focus');
autocompleteInputWrapper.simulate('change', { target: { value: 'Ar' } });
autocompleteInputWrapper.simulate('change', { target: { value: value } });

// simulate keyUp of last key, triggering autocomplete suggestion + selection of the suggestion in the menu
autocompleteInputWrapper.simulate('keyUp', { key: 'r', keyCode: 82, which: 82 });

// Click inside input, updating state.value with the selected Autocomplete suggestion
autocompleteInputWrapper.simulate('click');
expect(autocompleteWrapper.state('value')).to.equal('Arizona');
expect(value).to.equal('Arizona');
expect(autocompleteWrapper.state('isOpen')).to.be['false'];
});
});
Expand Down
2 changes: 1 addition & 1 deletion build/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-autocomplete",
"version": "1.0.0-rc5",
"version": "1.0.0",
"description": "Accessible, extensible, Autocomplete for React.js",
"main": "./build/lib/index.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-autocomplete",
"version": "1.0.0-rc6",
"version": "1.0.0",
"description": "Accessible, extensible, Autocomplete for React.js",
"main": "./build/lib/index.js",
"repository": {
Expand Down

0 comments on commit e386910

Please sign in to comment.