chore: Remove useless test case

ref #25736
This commit is contained in:
zombiej 2020-07-22 13:53:27 +08:00
parent 2742596b46
commit c5f3ea7b62

View File

@ -734,17 +734,6 @@ describe('Table.rowSelection', () => {
expect(wrapper.find('thead .ant-checkbox-input').props().checked).toBeFalsy();
});
it('should not crash when children is empty', () => {
const wrapper = mount(
createTable({ dataSource: [{ id: 1, name: 'Hello', age: 10, children: null }] }),
);
wrapper.find('.ant-table-row-expand-icon').simulate('click');
expect(() => {
wrapper.find('input').last().simulate('change');
}).not.toThrow();
});
it('should onRowClick not called when checkbox clicked', () => {
const onRowClick = jest.fn();