diff --git a/components/select/__tests__/index.test.js b/components/select/__tests__/index.test.js index 165eac9d83..19e2055b60 100644 --- a/components/select/__tests__/index.test.js +++ b/components/select/__tests__/index.test.js @@ -4,6 +4,7 @@ import Select from '..'; import Icon from '../../icon'; import focusTest from '../../../tests/shared/focusTest'; import mountTest from '../../../tests/shared/mountTest'; +import { resetWarned } from '../../_util/warning'; const { Option } = Select; @@ -132,4 +133,16 @@ describe('Select', () => { expect(wrapper.render()).toMatchSnapshot(); }); }); + + it('warning if user use `inputValue`', () => { + resetWarned(); + const errorSpy = jest.spyOn(console, 'error').mockImplementation(() => {}); + + mount(