mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-12 07:09:55 +08:00
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();
|
||
|
});
|
||
|
});
|