types: test cases typing
This commit is contained in:
@@ -19,7 +19,7 @@ export default createComponent({
|
||||
type: [String, Number, Array] as PropType<
|
||||
string | number | Array<string | number>
|
||||
>,
|
||||
required: true,
|
||||
default: '',
|
||||
},
|
||||
border: {
|
||||
type: Boolean,
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { ref } from 'vue';
|
||||
import { defineComponent, ref } from 'vue';
|
||||
import Collapse from '..';
|
||||
import CollapseItem from '../../collapse-item';
|
||||
import { later, mount } from '../../../test';
|
||||
|
||||
const Component = {
|
||||
const Component = defineComponent({
|
||||
props: {
|
||||
accordion: Boolean,
|
||||
border: {
|
||||
@@ -31,7 +31,7 @@ const Component = {
|
||||
</Collapse>
|
||||
);
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
test('should update active value when title is clicked', async () => {
|
||||
const wrapper = mount(Component);
|
||||
Reference in New Issue
Block a user