(opts: Electron.MessageBoxOptions)
| 1 | import {invoke} from "src/core/invoke" |
| 2 | |
| 3 | export function showMessageBox(opts: Electron.MessageBoxOptions) { |
| 4 | if (global.env.isIntegrationTest) { |
| 5 | return Promise.resolve({response: 0}) |
| 6 | // To do, mock the options and give the test case a way to select some |
| 7 | } else { |
| 8 | return invoke("showMessageBoxOp", opts) |
| 9 | } |
| 10 | } |
no test coverage detected