Skip to content

Commit

Permalink
fix(components): [tree-v2] default icon render test (#10342)
Browse files Browse the repository at this point in the history
Co-authored-by: zz <2418184580@qq.com>
Co-authored-by: init-qy <953218204@qq.com>
  • Loading branch information
3 people committed Nov 1, 2022
1 parent 1753e1d commit d8ee83d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/components/tree-v2/__tests__/tree.test.ts
Expand Up @@ -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 () => {
Expand Down

0 comments on commit d8ee83d

Please sign in to comment.