diff --git a/src/Table.tsx b/src/Table.tsx index 06ca9637a..52836b2d6 100644 --- a/src/Table.tsx +++ b/src/Table.tsx @@ -389,7 +389,7 @@ function Table(props: TableProps { it('renders scroll.x is true', () => { const wrapper = mount(createTable({ scroll: { x: true } })); expect(wrapper.find('table').props().style.width).toEqual('auto'); - expect(wrapper.find('.rc-table-content').props().style.overflowX).toEqual('scroll'); + expect(wrapper.find('.rc-table-content').props().style.overflowX).toEqual('auto'); expect(wrapper.find('.rc-table-content').props().style.overflowY).toEqual('hidden'); }); @@ -31,7 +31,7 @@ describe('Table.Scroll', () => { it('renders scroll.x and scroll.y are both true', () => { const wrapper = mount(createTable({ scroll: { x: true, y: 200 } })); - expect(wrapper.find('.rc-table-body').props().style.overflowX).toEqual('scroll'); + expect(wrapper.find('.rc-table-body').props().style.overflowX).toEqual('auto'); expect(wrapper.find('.rc-table-body').props().style.overflowY).toEqual('scroll'); }); diff --git a/tests/__snapshots__/ExpandRow.spec.js.snap b/tests/__snapshots__/ExpandRow.spec.js.snap index 91b4b35c8..9b83f29a4 100644 --- a/tests/__snapshots__/ExpandRow.spec.js.snap +++ b/tests/__snapshots__/ExpandRow.spec.js.snap @@ -112,7 +112,7 @@ exports[`Table.Expand renders fixed column correctly work 1`] = ` >