mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-03-07 13:48:31 +08:00
test(table): add table component test (#1189)
This commit is contained in:
parent
a8633abb9b
commit
5f6d2f6db0
@ -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)
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user