mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-16 01:41:15 +08:00
20 lines
533 B
JavaScript
20 lines
533 B
JavaScript
import { mount } from '@vue/test-utils'
|
|
import { asyncExpect } from '@/tests/utils'
|
|
import List from '..'
|
|
|
|
describe('List', () => {
|
|
it('locale not passed to internal div', async () => {
|
|
const locale = { emptyText: 'Custom text' }
|
|
const wrapper = mount({
|
|
render () {
|
|
return <List dataSource={[]} renderItem={(item) => <List.Item>{item}</List.Item>} locale={locale} />
|
|
},
|
|
}, {
|
|
sync: false,
|
|
})
|
|
await asyncExpect(() => {
|
|
expect(wrapper.props().locale).toBe(undefined)
|
|
})
|
|
})
|
|
})
|