types: test cases typing

This commit is contained in:
chenjiahan
2021-02-11 13:04:00 +08:00
parent 7a5fb894d2
commit e2e0f66fe6
87 changed files with 129 additions and 121 deletions
+1 -1
View File
@@ -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);