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

@@ -38,7 +38,7 @@ describe('Select', () => {
it('should trigger events when option changed', async () => {
let value = ''
const changeHandler = jest.fn().mockImplementation((val) => (value = val))
const changeHandler = jest.fn().mockImplementation(val => (value = val))
const wrapper = mount(
<Select onChange={changeHandler}>
<Select.Option value="1">1</Select.Option>
@@ -68,7 +68,7 @@ describe('Select', () => {
it('should ignore option when option disabled', async () => {
let value = ''
const changeHandler = jest.fn().mockImplementation((val) => (value = val))
const changeHandler = jest.fn().mockImplementation(val => (value = val))
const wrapper = mount(
<Select onChange={changeHandler}>
<Select.Option value="1">1</Select.Option>
@@ -104,7 +104,7 @@ describe('Select', () => {
it('should be wraning when ident value missing', () => {
let errorMessage = ''
const errorSpy = jest.spyOn(console, 'error').mockImplementation((msg) => (errorMessage = msg))
const errorSpy = jest.spyOn(console, 'error').mockImplementation(msg => (errorMessage = msg))
const SelectOption = Select.Option as any
const wrapper = mount(
<Select>