mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
parent
2742596b46
commit
c5f3ea7b62
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user