mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
675c1c1b8c
* List not display NoData when loading state & customize Spin indicator. #8647 #8659 * fixed ci warning * fix: empty block
13 lines
292 B
JavaScript
13 lines
292 B
JavaScript
import React from 'react';
|
|
import { render } from 'enzyme';
|
|
import List from '..';
|
|
|
|
describe('List', () => {
|
|
it('renders empty list', () => {
|
|
const wrapper = render(
|
|
<List dataSource={[]} renderItem={() => <List.Item />} />
|
|
);
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|
|
});
|