Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
linxianxi committed Jun 5, 2024
1 parent 7df9e03 commit fc8ac32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Sticky.spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ describe('Table.Sticky', () => {
await Promise.resolve();
});

expect(wrapper.find('.rc-table-sticky-scroll').get(0)).not.toBeUndefined();
expect(wrapper.find('.rc-table-sticky-scroll').get(0)).toBeUndefined();

const oldInnerHeight = global.innerHeight;
const resizeEvent = new Event('resize');
Expand Down Expand Up @@ -392,6 +392,7 @@ describe('Table.Sticky', () => {
await act(async () => {
vi.runAllTimers();
await Promise.resolve();
wrapper.update();
});

expect(wrapper.find('.rc-table-sticky-scroll').get(0)).toBeTruthy();
Expand Down

0 comments on commit fc8ac32

Please sign in to comment.