Skip to content

Commit

Permalink
test: 更新单元测试
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyh2001 committed Aug 12, 2023
1 parent 1d7f13f commit 7cbbe3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/fighting-design/tree/__test__/tree.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ describe('Tree', () => {
const wrapper = mount(FTree, {
props: { data }
})
expect(wrapper.classes()).toContain('f-tree')
expect(wrapper.find('.f-tree').classes()).toContain('f-tree')
})
})
6 changes: 3 additions & 3 deletions packages/fighting-design/tree/src/tree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
/** 处理后的树形结构 */
const tree: TreeItemModel[] = markTreeLevels(prop.data)
/** 多选列表 */
const checkOption = ref([])
/** 注入依赖项 */
provide<TreeProvide>(
TREE_PROPS_KEY,
Expand All @@ -55,9 +58,6 @@
tree
})
)
/** 多选列表 */
const checkOption = ref([])
</script>

<template>
Expand Down

0 comments on commit 7cbbe3b

Please sign in to comment.