Skip to content

Commit

Permalink
fix: fix table jest
Browse files Browse the repository at this point in the history
  • Loading branch information
DaiQiangReal committed Nov 27, 2023
1 parent cb60858 commit a3c6d70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/semi-ui/table/__test__/table.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,7 @@ describe(`Table`, () => {
.at(0)
.find(`.${BASE_CLASS_PREFIX}-checkbox`)
.simulate('mousedown', {
button:0,
nativeEvent: null,
});
expect(onChange.callCount).toBe(++onChangeCalledCount); // click first filter again
Expand All @@ -569,6 +570,7 @@ describe(`Table`, () => {
.at(0)
.find(`.${BASE_CLASS_PREFIX}-checkbox`)
.simulate('mousedown', {
button:0,
nativeEvent: null,
});
expect(onChange.callCount).toBe(++onChangeCalledCount); // to page 2
Expand Down Expand Up @@ -629,6 +631,7 @@ describe(`Table`, () => {
.at(0)
.find(`.${BASE_CLASS_PREFIX}-checkbox`)
.simulate('mousedown', {
button:0,
nativeEvent: null,
});
const nameColList = demo.find('.semi-table-tbody .name-col');
Expand Down

0 comments on commit a3c6d70

Please sign in to comment.