We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b8c456 commit 198bde0Copy full SHA for 198bde0
packages/vue/src/date-panel/__tests__/date-panel.test.ts
@@ -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