ant-design-vue/components/list/__tests__/empty.test.js

14 lines
317 B
JavaScript
Raw Normal View History

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