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