Skip to content

Commit 4d74567

Browse files
committed
test: fix test case
1 parent 1756eee commit 4d74567

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/ExpandRow.spec.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ describe('Table.Expand', () => {
265265
expandable: { expandedRowRender, fixed: 'right' },
266266
}),
267267
);
268-
expect(container.querySelectorAll('.rc-table-has-fix-left').length).toBe(1);
269-
expect(container2.querySelectorAll('.rc-table-has-fix-right').length).toBe(1);
268+
expect(container.querySelector('.rc-table-has-fix-start')).toBeTruthy();
269+
expect(container2.querySelector('.rc-table-has-fix-end')).toBeTruthy();
270270
});
271271

272272
describe('config expand column index', () => {

tests/__snapshots__/ExpandRow.spec.jsx.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ exports[`Table.Expand > not use nest when children is invalidate 1`] = `
438438

439439
exports[`Table.Expand > renders fixed column correctly > work 1`] = `
440440
<div
441-
class="rc-table rc-table-fix-start-shadow rc-table-fix-end-shadow rc-table-fixed-column rc-table-scroll-horizontal rc-table-has-fix-left rc-table-has-fix-right"
441+
class="rc-table rc-table-fix-start-shadow rc-table-fix-end-shadow rc-table-fixed-column rc-table-scroll-horizontal rc-table-has-fix-start rc-table-has-fix-end"
442442
>
443443
<div
444444
class="rc-table-container"

0 commit comments

Comments
 (0)