mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-02-23 13:31:06 +08:00
test(date-picker): optimize test (#4138)
This commit is contained in:
parent
2131cdc037
commit
673f081f30
@ -151,6 +151,7 @@ describe('n-date-picker', () => {
|
||||
inputReadonly: true
|
||||
})
|
||||
expect(wrapper.find('input').attributes('readonly')).toBe('')
|
||||
wrapper.unmount()
|
||||
})
|
||||
|
||||
it('should work with `clearable` prop', async () => {
|
||||
@ -210,6 +211,7 @@ describe('n-date-picker', () => {
|
||||
locale: dateEnUS.locale
|
||||
})
|
||||
)
|
||||
wrapper.unmount()
|
||||
})
|
||||
|
||||
it('should work with `firstDayOfWeek` prop', async () => {
|
||||
@ -290,6 +292,7 @@ describe('n-date-picker', () => {
|
||||
expect(wrapper.text().includes('07akioni')).toBe(true)
|
||||
await wrapper.setProps({ separator: '08akioni', type: 'datetimerange' })
|
||||
expect(wrapper.text().includes('08akioni')).toBe(true)
|
||||
wrapper.unmount()
|
||||
})
|
||||
|
||||
it('should work with `status` prop', async () => {
|
||||
|
Loading…
Reference in New Issue
Block a user