From bdfb8bf834085d64e976f3e517cd18301340c1f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A0=97=E5=98=89=E7=94=B7?= <574980606@qq.com> Date: Sun, 4 Feb 2024 18:09:01 +0800 Subject: [PATCH] test: fix test case --- tests/Table.spec.jsx | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/tests/Table.spec.jsx b/tests/Table.spec.jsx index 21dcb3be1..3201053eb 100644 --- a/tests/Table.spec.jsx +++ b/tests/Table.spec.jsx @@ -300,28 +300,6 @@ describe('Table.Basic', () => { }); }); - it('renders td instead of th if header title is empty', () => { - const wrapper = mount( - createTable({ - columns: [ - { - title: '', - dataIndex: 'firstName', - key: 'firstName', - }, - { - title: 'Last Name', - dataIndex: 'lastName', - key: 'lastName', - }, - ], - data: [{ firstName: 'John', lastName: 'Doe', key: '1' }], - }), - ); - - expect(wrapper.find('thead th')).toHaveLength(2); - }); - it('renders column correctly', () => { const columns = [ {