style(desktop): wrap dialog mock after rebase

This commit is contained in:
lsdsjy committed 2026-09-16 14:03:25 +08:00
1 parent 21c7828678
commit 285da0fa64
1 file changed
+5 -1
+5 -1
View File
@@ -89,7 +89,11 @@ const harness = await vi.hoisted(async () => {
popup,
socketHeaders: vi.fn(),
menu: { setApplicationMenu: vi.fn(), buildFromTemplate: vi.fn(() => ({ popup })) },
dialog: { showOpenDialog: vi.fn(), showErrorBox: vi.fn(), showMessageBox: vi.fn<(options: MessageBoxOptions) => Promise<MessageBoxReturnValue>>() },
dialog: {
showOpenDialog: vi.fn(),
showErrorBox: vi.fn(),
showMessageBox: vi.fn<(options: MessageBoxOptions) => Promise<MessageBoxReturnValue>>(),
},
openExternal: vi.fn(),
applyRelease: vi.fn(() => { preparing.resolve(); return prepared.promise }),
mutateFailure: vi.fn<() => void>(),