Skip to content

Commit

Permalink
test: update
Browse files Browse the repository at this point in the history
  • Loading branch information
linxianxi committed Apr 30, 2024
1 parent 36a67bd commit d55114b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/Resizable.spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,13 @@ describe('Table.resizable', () => {
width: 300,
columnWidths: [
{ columnKey: 'a', width: 300 },
{ columnKey: 'b', width: 500 },
// scrollBarSize = 15px
{ columnKey: 'b', width: 485 },
],
});

expect(wrapper.find('colgroup col').at(0).props().style.width).toBe(300);
expect(wrapper.find('colgroup col').at(1).props().style.width).toBe(500);
expect(wrapper.find('colgroup col').at(1).props().style.width).toBe(485);
});

it('minWidth should be worked', async () => {
Expand Down

0 comments on commit d55114b

Please sign in to comment.