From a47fa765ba1ad037a9a26ee82e3aad0852691d3a Mon Sep 17 00:00:00 2001 From: suzhi Date: Tue, 12 Nov 2024 14:41:08 +0800 Subject: [PATCH] tests: update tests case --- tests/BaseSelect.test.tsx | 2 +- tests/Select.test.tsx | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/tests/BaseSelect.test.tsx b/tests/BaseSelect.test.tsx index 72b8c23b..d0642e17 100644 --- a/tests/BaseSelect.test.tsx +++ b/tests/BaseSelect.test.tsx @@ -158,7 +158,7 @@ describe('BaseSelect', () => { displayValues={[]} onDisplayValuesChange={() => {}} searchValue="1" - showSearch={false} + showSearch open onSearch={onSearch} OptionList={OptionList} diff --git a/tests/Select.test.tsx b/tests/Select.test.tsx index be417979..9e69e02a 100644 --- a/tests/Select.test.tsx +++ b/tests/Select.test.tsx @@ -595,13 +595,6 @@ describe('Select.Basic', () => { selectItem(container); expect(handleSearch).toHaveBeenCalledTimes(1); - // Should trigger onBlur - // fireEvent.change(container.querySelector('input'), { target: { value: '3' } }); - // expect(handleSearch).toHaveBeenCalledTimes(2); - // fireEvent.blur(container.querySelector('input')); - // jest.runAllTimers(); - // expect(handleSearch).toHaveBeenCalledTimes(3); - jest.useRealTimers(); });