test(components): [select] fix option type warning (#17020)

This commit is contained in:
sleepyShen1989
2024-05-30 18:47:18 +08:00
committed by GitHub
parent db9590e1f0
commit 203f76b0eb

View File

@@ -3,6 +3,7 @@ import { mount } from '@vue/test-utils'
import { afterEach, describe, it } from 'vitest'
import Options from '../src/options'
import type { PropType } from 'vue'
import type { VueWrapper } from '@vue/test-utils'
describe('options', () => {
@@ -12,6 +13,9 @@ describe('options', () => {
name: 'ElOption',
props: {
label: String,
value: [String, Number, Boolean, Object] as PropType<
string | number | boolean | object
>,
},
template: '<div></div>',
})
@@ -20,6 +24,9 @@ describe('options', () => {
const ElOptionGroupStub = defineComponent({
name: 'ElOptionGroup',
props: {
label: String,
},
template: '<div><slot /></div>',
})