ant-design-vue/components/date-picker/__tests__/WeekPicker.test.js

22 lines
542 B
JavaScript
Raw Normal View History

2018-06-09 05:14:14 +00:00
import { mount } from '@vue/test-utils'
import { asyncExpect } from '@/tests/utils'
import DatePicker from '..'
import focusTest from '../../../tests/shared/focusTest'
const { WeekPicker } = DatePicker
describe('WeekPicker', async () => {
focusTest(WeekPicker)
it('should support style prop', async () => {
const wrapper = mount({
render () {
return <WeekPicker style={{ width: '400px' }} />
},
}, { sync: false })
await asyncExpect(() => {
expect(wrapper.html()).toMatchSnapshot()
})
})
})