2019-01-12 03:33:27 +00:00
|
|
|
import { mount } from '@vue/test-utils';
|
|
|
|
import List from '..';
|
2018-06-16 14:57:11 +00:00
|
|
|
|
|
|
|
describe('List', () => {
|
|
|
|
it('renders empty list', () => {
|
|
|
|
const wrapper = mount({
|
2019-01-12 03:33:27 +00:00
|
|
|
render() {
|
|
|
|
return <List dataSource={[]} renderItem={() => <List.Item />} />;
|
2018-06-16 14:57:11 +00:00
|
|
|
},
|
2019-01-12 03:33:27 +00:00
|
|
|
});
|
|
|
|
expect(wrapper.html()).toMatchSnapshot();
|
|
|
|
});
|
|
|
|
});
|