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

14 lines
311 B
JavaScript
Raw Normal View History

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