Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-19 02:19:20 +08:00

test: 更新测试用例

This commit is contained in:
pany 2024-12-03 18:42:34 +08:00
parent 17ca9b58e4
commit b85354b8d3

View File

@ -17,7 +17,7 @@ describe("list", () => {
data: []
}
})
expect(wrapper.find("el-empty").exists()).toBe(true)
expect(wrapper.find("el-empty-stub").exists()).toBe(true)
})
it("list 长度不为 0", () => {
const wrapper = shallowMount(List, {
@ -29,6 +29,6 @@ describe("list", () => {
]
}
})
expect(wrapper.find("el-empty").exists()).toBe(false)
expect(wrapper.find("el-empty-stub").exists()).toBe(false)
})
})