feat: 优化单测模拟数据格式,避免eslint报错提示造成卡顿
This commit is contained in:
@@ -32,6 +32,7 @@ function axiosPostAndMounted (list1, list2) {
|
||||
})
|
||||
|
||||
// 模拟localStorage获取数据
|
||||
// eslint-disable-next-line no-proto
|
||||
jest.spyOn(localStorage.__proto__, 'getItem').mockImplementation(key => linkInfo)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user