fix(components): [tree-v2] default icon render test (#10342)

Co-authored-by: zz <2418184580@qq.com>
Co-authored-by: init-qy <953218204@qq.com>
This commit is contained in:
init-qy
2022-11-01 12:03:19 +08:00
committed by GitHub
parent 1753e1dedc
commit d8ee83dd4a

View File

@@ -183,9 +183,11 @@ const createTree = (
describe('Virtual Tree', () => {
test('create', async () => {
const { treeVm } = createTree()
const { wrapper, treeVm } = createTree()
await nextTick()
expect(treeVm.flattenTree.length).toEqual(NODE_NUMBER)
const iconWrapper = wrapper.find(TREE_NODE_EXPAND_ICON_CLASS_NAME)
expect(iconWrapper.find('svg').exists()).toBeTruthy()
})
test('click node', async () => {