mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-10-05 21:05:39 +08:00
feat: 增加更新页
This commit is contained in:
@@ -20,9 +20,16 @@ describe('basic settings pages', () => {
|
||||
beforeEach(() => {
|
||||
vi.clearAllMocks()
|
||||
Object.defineProperty(window, 'api', { configurable: true, value: api })
|
||||
api.getAppUpdateState.mockResolvedValue({ status: 'idle', currentVersion: '2.2.2' })
|
||||
api.getAppUpdateState.mockResolvedValue({
|
||||
status: 'idle',
|
||||
currentVersion: '2.2.2',
|
||||
delivery: 'automatic'
|
||||
})
|
||||
api.onAppUpdateState.mockReturnValue(vi.fn())
|
||||
api.checkAppUpdate.mockResolvedValue(undefined)
|
||||
api.checkAppUpdate.mockResolvedValue({
|
||||
success: true,
|
||||
state: { status: 'up-to-date', currentVersion: '2.2.2' }
|
||||
})
|
||||
api.revealAppLog.mockResolvedValue(undefined)
|
||||
api.getSettings.mockResolvedValue({ settings: { debugEnabled: false } })
|
||||
api.setSettings.mockResolvedValue({ settings: { debugEnabled: true } })
|
||||
|
||||
Reference in New Issue
Block a user