Skip to content

Commit

Permalink
fix: add multiple test
Browse files Browse the repository at this point in the history
  • Loading branch information
nova1751 committed Feb 4, 2024
1 parent c69afdf commit 11f74e6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/Multiple.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -681,5 +681,16 @@ describe('Select.Multiple', () => {
toggleOpen(wrapper);
expect(wrapper.find('input').props().value).toBe('');
});
it('input should not be readonly when autoClearSearchValue and showSearch are both false', () => {
const wrapper = mount(
<Select
mode="multiple"
autoClearSearchValue={false}
showSearch={false}
searchValue="test"
/>,
);
expect(wrapper.find('input').props().readOnly).toBe(true);
});
});
});

0 comments on commit 11f74e6

Please sign in to comment.