chore: upgrade deps

style(prettier): format code style
This commit is contained in:
unix
2020-05-06 14:46:06 +08:00
parent b1950970b1
commit 3a8dd34010
40 changed files with 77 additions and 76 deletions

View File

@@ -17,7 +17,7 @@ describe('AutoComplete Search', () => {
it('should update value when dropdown clicked', () => {
let value = ''
const wrapper = mount(<AutoComplete options={mockOptions} onChange={(val) => (value = val)} />)
const wrapper = mount(<AutoComplete options={mockOptions} onChange={val => (value = val)} />)
wrapper.find('input').at(0).simulate('focus')
wrapper.find('.item').at(0).simulate('click', nativeEvent)
expect(value).toEqual('london')
@@ -26,7 +26,7 @@ describe('AutoComplete Search', () => {
it('should ignore events when disabled', () => {
let value = ''
const wrapper = mount(
<AutoComplete disabled options={mockOptions} onChange={(val) => (value = val)} />,
<AutoComplete disabled options={mockOptions} onChange={val => (value = val)} />,
)
wrapper.find('input').at(0).simulate('focus')
wrapper.find('.item').at(0).simulate('click', nativeEvent)