fn(record.name)} className="expand-icon" />
),
}}
rowKey={(item) => {
return item.name;
}}
/>
);
};
const html = mount(
);
await waitForComponentToPaint(html, 1200);
expect(html.find('.expand-icon')).toHaveLength(1);
act(() => {
html.find('#test_click').simulate('click');
});
expect(fn).toBeCalledWith('我是名称');
});
it('🚏 ProList support renderItem', async () => {
const Wrapper = () => {
return (
我是内容 ,
},
]}
renderItem={(_, index) => {
return