mirror of
https://github.com/zhigang1992/react.git
synced 2026-05-08 02:38:59 +08:00
chore: upgrade deps
style(prettier): format code style
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user