fix: more than one component in table_column.spec.js (#2461)

This commit is contained in:
msidolphin
2021-07-12 11:01:47 +08:00
committed by GitHub
parent 5faa7ec530
commit e2f8f382c3

View File

@@ -1,4 +1,4 @@
import { defineComponent, nextTick } from 'vue'
import { nextTick } from 'vue'
import ElTable from '../src/table.vue'
import ElTableColumn from '../src/table-column/index'
import { triggerEvent } from '@element-plus/test-utils'
@@ -667,7 +667,7 @@ describe('table column', () => {
})
it('el-table-column should callback itself', async() => {
const TableColumn = defineComponent({
const TableColumn = {
name: 'TableColumn',
components: {
ElTableColumn,
@@ -682,7 +682,7 @@ describe('table column', () => {
</template>
</el-table-column>
`,
})
}
const App = {
template: `
<el-table :data="data">
@@ -741,11 +741,11 @@ describe('table column', () => {
})
it('should not rendered other components in hidden-columns', async () => {
const Comp = defineComponent({
const Comp = {
template: `
<div class="other-component"></div>
`,
})
}
const wrapper = mount({
components: {
ElTableColumn,