mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
Add tests for Input.Search
This commit is contained in:
parent
d1e8dd7504
commit
7180f6be44
@ -21,6 +21,15 @@ describe('Input.Search', () => {
|
||||
expect(wrapper.render()).toMatchSnapshot();
|
||||
});
|
||||
|
||||
it('should support ReactNode suffix without error', () => {
|
||||
const fn = () => {
|
||||
mount(
|
||||
<Search suffix={<div>ok</div>} />
|
||||
);
|
||||
};
|
||||
expect(fn).not.toThrow();
|
||||
});
|
||||
|
||||
it('should disable enter button when disabled prop is true', () => {
|
||||
const wrapper = mount(
|
||||
<Search placeholder="input search text" enterButton disabled />
|
||||
|
Loading…
Reference in New Issue
Block a user