Skip to content

Commit

Permalink
test: fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
li-jia-nan committed Feb 4, 2024
1 parent ecc35b9 commit bdfb8bf
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions tests/Table.spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
{
Expand Down

0 comments on commit bdfb8bf

Please sign in to comment.