Skip to content

Commit

Permalink
fixed lodash dep problem #23, v4.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
erikras committed Aug 2, 2016
1 parent 0abde8f commit 842b2f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "redux-form-material-ui",
"version": "4.0.0",
"version": "4.0.1",
"description": "An adapter between Redux Form and Material UI components",
"main": "./lib/index.js",
"jsnext:main": "./src/index.js",
Expand Down
2 changes: 0 additions & 2 deletions src/AutoComplete.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import AutoComplete from 'material-ui/AutoComplete'
import noop from 'lodash.noop'
import createComponent from './createComponent'
import mapError from './mapError'

Expand All @@ -9,6 +8,5 @@ export default createComponent(
...mapError(props),
...inputProps,
searchText: value,
onChange: noop,
onNewRequest: value => onChange(value)
}))
9 changes: 4 additions & 5 deletions src/__tests__/AutoComplete.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('AutoComplete', () => {
}
}).render())
.toEqualJSX(<AutoComplete dataSource={dataSource} name="myAutoComplete" searchText="Foo"
onChange={noop} ref="component"/>)
onNewRequest={noop} ref="component"/>)
})

it('renders an AutoComplete with no error when not touched', () => {
Expand All @@ -47,7 +47,7 @@ describe('AutoComplete', () => {
}
}).render())
.toEqualJSX(<AutoComplete dataSource={dataSource} name="myAutoComplete" searchText="Foo"
onChange={noop} ref="component"/>)
onNewRequest={noop} ref="component"/>)
})

it('renders an AutoComplete with an error', () => {
Expand All @@ -63,11 +63,10 @@ describe('AutoComplete', () => {
}
}).render())
.toEqualJSX(<AutoComplete dataSource={dataSource} name="myAutoComplete" searchText="Foo"
errorText="FooError" onChange={noop}
ref="component"/>)
errorText="FooError" onNewRequest={noop} ref="component"/>)
})

it('maps onChange properly', () => {
it('maps onNewRequest properly', () => {
const onChange = createSpy()

const dom = TestUtils.renderIntoDocument(
Expand Down

0 comments on commit 842b2f6

Please sign in to comment.