mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 09:21:22 +08:00
11 lines
280 B
JavaScript
11 lines
280 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();
|
|
});
|
|
});
|