()
| 5 | const calls: string[] = [] |
| 6 | const backend: UpdaterBackend = { |
| 7 | async checkForUpdates() { |
| 8 | calls.push("check") |
| 9 | return { isUpdateAvailable: true, updateInfo: { version: "2.0.0" } } |
| 10 | }, |
| 11 | async downloadUpdate() { |
| 12 | calls.push("download") |
| 13 | }, |