Skip to content

Commit

Permalink
fix(components): [tree-v2] default icon render test
Browse files Browse the repository at this point in the history
  • Loading branch information
init-qy committed Nov 1, 2022
1 parent 4ff8f28 commit 937e68d
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.element.innerHTML).contains('svg')
})

test('click node', async () => {
Expand Down

0 comments on commit 937e68d

Please sign in to comment.