test(table): add table component test (#1189)

This commit is contained in:
songjianet 2021-09-17 13:09:28 +08:00 committed by GitHub
parent a8633abb9b
commit 5f6d2f6db0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,38 @@
import { mount } from '@vue/test-utils'
import { NTable } from '../index'
import { NTable, NTbody, NThead, NTd, NTh, NTr } from '../index'
describe('n-table', () => {
it('should work with import on demand', () => {
mount(NTable)
})
})
describe('n-table-body', () => {
it('should work with import on demand', () => {
mount(NTbody)
})
})
describe('n-table-head', () => {
it('should work with import on demand', () => {
mount(NThead)
})
})
describe('n-table-td', () => {
it('should work with import on demand', () => {
mount(NTd)
})
})
describe('n-table-th', () => {
it('should work with import on demand', () => {
mount(NTh)
})
})
describe('n-table-tr', () => {
it('should work with import on demand', () => {
mount(NTr)
})
})