chore: adjust some code (#8446)

This commit is contained in:
neverland
2021-04-02 10:19:33 +08:00
committed by GitHub
parent 65185069bf
commit 74e19f55d1
5 changed files with 10 additions and 9 deletions
@@ -1,3 +1,4 @@
import { defineComponent } from 'vue';
import { mount, later } from '../../../test';
import { Tab } from '..';
import { Tabs } from '../../tabs';
@@ -64,11 +65,11 @@ test('should render correctly after inserting a tab with name', async () => {
});
test('should render Tab inside a component correctly', async () => {
const MyTab = {
const MyTab = defineComponent({
render() {
return <Tab title="2">2</Tab>;
},
};
});
const wrapper = mount({
render() {