Skip to content

Commit

Permalink
tests: update tests case
Browse files Browse the repository at this point in the history
  • Loading branch information
su-muzhi committed Nov 12, 2024
1 parent 567a898 commit a47fa76
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion tests/BaseSelect.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ describe('BaseSelect', () => {
displayValues={[]}
onDisplayValuesChange={() => {}}
searchValue="1"
showSearch={false}
showSearch
open
onSearch={onSearch}
OptionList={OptionList}
Expand Down
7 changes: 0 additions & 7 deletions tests/Select.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

Expand Down

0 comments on commit a47fa76

Please sign in to comment.