fix: ts error

This commit is contained in:
Amour1688 2020-10-12 13:49:27 +08:00
parent 5d4a501bfe
commit e9aa278b20
2 changed files with 7 additions and 7 deletions

View File

@ -393,10 +393,10 @@ describe('PatchFlags', () => {
});
describe('variables outside slots', () => {
interface AProps {
inc: () => void
}
const A = defineComponent<AProps>({
const A = defineComponent({
props: {
inc: Function,
},
render() {
return this.$slots.default?.();
},
@ -405,7 +405,7 @@ describe('variables outside slots', () => {
A.inheritAttrs = false;
test('internal', async () => {
const wrapper = mount({
const wrapper = mount(defineComponent({
data() {
return {
val: 0,
@ -429,7 +429,7 @@ describe('variables outside slots', () => {
</A>
);
},
});
}));
expect(wrapper.get('#textarea').element.innerHTML).toBe('0');
await wrapper.get('#button').trigger('click');

View File

@ -18,4 +18,4 @@
"include": [
"global.d.ts"
]
}
}