Skip to content

Commit 0152915

Browse files
committed
tests: clean repetition test case
1 parent 4402aa5 commit 0152915

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

tests/Blur.test.tsx

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -54,29 +54,6 @@ describe('Select.Blur', () => {
5454
expect(onSearch).toHaveBeenCalledWith('', { source: 'blur' });
5555
});
5656

57-
it('mode with multiple, onBlur source is blur', () => {
58-
const onSearch = jest.fn();
59-
const { container } = render(
60-
<BaseSelect
61-
prefixCls="rc-select"
62-
mode="multiple"
63-
id="test"
64-
displayValues={[]}
65-
onDisplayValuesChange={() => {}}
66-
searchValue="1"
67-
showSearch
68-
onSearch={onSearch}
69-
OptionList={OptionList}
70-
emptyOptions
71-
/>,
72-
);
73-
expect(container.querySelector('div.rc-select')).toBeTruthy();
74-
fireEvent.change(container.querySelector('input'), { target: { value: '2' } });
75-
expect(onSearch).toHaveBeenCalledWith('2', { source: 'typing' });
76-
fireEvent.blur(container.querySelector('div.rc-select'));
77-
expect(onSearch).toHaveBeenCalledWith('', { source: 'blur' });
78-
});
79-
8057
it('click item and blur should trigger onBlur but not trigger onSearch', () => {
8158
const onSearch = jest.fn();
8259
const onBlur = jest.fn();

0 commit comments

Comments
 (0)