From c5f3ea7b6288672688a3102f43f7baafd925b3fe Mon Sep 17 00:00:00 2001 From: zombiej Date: Wed, 22 Jul 2020 13:53:27 +0800 Subject: [PATCH] chore: Remove useless test case ref #25736 --- components/table/__tests__/Table.rowSelection.test.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/components/table/__tests__/Table.rowSelection.test.js b/components/table/__tests__/Table.rowSelection.test.js index e7fa2fd8b6..9258ad6f95 100644 --- a/components/table/__tests__/Table.rowSelection.test.js +++ b/components/table/__tests__/Table.rowSelection.test.js @@ -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();