fix: perf test

pull/7822/head
carl-chen 2024-09-06 23:00:01 +08:00
parent 623490aad7
commit 223da5fc68
1 changed files with 2 additions and 2 deletions

View File

@ -188,12 +188,12 @@ describe('Select', () => {
await asyncExpect(async () => {
const inputEl = wrapper.find('.ant-select-selection-search-input');
inputEl.setValue('1,2,3');
await inputEl.trigger('paste', {
clipboardData: {
getData: jest.fn().mockReturnValue('1,2,3'),
getData: () => '1,2,3',
},
});
await inputEl.setValue('1,2,3');
expect(inputEl.element.value).toBe('');
const tagsElements = wrapper.findAll('.ant-select-selection-item');