chore: demo spec uses ts (#8197)

This commit is contained in:
neverland
2021-02-22 20:53:07 +08:00
committed by GitHub
parent f4698ebf44
commit f0f89f1c4c
191 changed files with 254 additions and 256 deletions

View File

@@ -1,14 +1,14 @@
import { h } from 'vue';
import { h, defineComponent } from 'vue';
import Locale from '../src/locale';
import { mount, later } from '.';
import { DemoLocaleMixin } from '../docs/site/demo-locale';
const EmptyComponent = {
render() {
return h('div', [this.$slots.default()]);
},
const EmptyComponent = defineComponent({
inheritAttrs: false,
};
render() {
return h('div', [this.$slots.default?.()]);
},
});
export function snapshotDemo(Demo: any, option: any = {}) {
test('should render demo and match snapshot', async () => {