We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 719d285 commit 86f5cabCopy full SHA for 86f5cab
tests/Scroll.spec.jsx
@@ -15,6 +15,17 @@ describe('Table.Scroll', () => {
15
return <Table columns={columns} data={data} {...props} />;
16
};
17
18
+ it('should always has content when scroll.x is enabled', () => {
19
+ const data = [];
20
+ const createTable = props => {
21
+ return <Table data={data} {...props} />;
22
+ };
23
+
24
+ const wrapper = mount(createTable({ scroll: { x: true } }));
25
26
+ expect(wrapper.find('.rc-table-tbody').hostNodes().text()).toContain('No Data');
27
+ });
28
29
it('renders scroll.x is true', () => {
30
const wrapper = mount(createTable({ scroll: { x: true } }));
31
expect(wrapper.find('table').props().style.width).toEqual('auto');
0 commit comments