fix: 完善单测demo(indexedDB相关)

This commit is contained in:
chenjinsong
2023-01-17 17:56:44 +08:00
parent 38006bd964
commit 04e186e7d8
9 changed files with 88 additions and 36 deletions

View File

@@ -27,6 +27,8 @@ jest.mock('vue-router', () => {
})
/* 模拟axios */
jest.mock('axios')
/* 模拟indexedDB工具 */
jest.mock('@/indexedDB')
/* 模拟$t */
config.global.mocks.$t = key => key
/* 模拟$route具体用例中需要不同值时重写覆盖即可 */