Skip to content

Commit 198bde0

Browse files
committed
用例补全
1 parent 7b8c456 commit 198bde0

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { mountPcMode } from '@opentiny-internal/vue-test-utils'
2+
import { describe, expect, test } from 'vitest'
3+
import { DatePanel } from '@opentiny/vue-date-panel'
4+
5+
describe('PC Mode', () => {
6+
const mount = mountPcMode
7+
8+
test('static', () => {
9+
const wrapper = mount(DatePanel, {
10+
props: {
11+
modelValue: '2025-01-14'
12+
}
13+
})
14+
expect(wrapper.classes()).toContain('tiny-picker-panel')
15+
expect(wrapper.find('td .current').exists()).toBe(true)
16+
})
17+
})

0 commit comments

Comments
 (0)