Files
atom/packages/about/spec/mocks/updater.js
2019-02-25 12:19:44 +01:00

24 lines
523 B
JavaScript

module.exports = {
updateError () {
atom.autoUpdater.emitter.emit('update-error')
},
checkForUpdate () {
atom.autoUpdater.emitter.emit('did-begin-checking-for-update')
},
updateNotAvailable () {
atom.autoUpdater.emitter.emit('update-not-available')
},
downloadUpdate () {
atom.autoUpdater.emitter.emit('did-begin-downloading-update')
},
finishDownloadingUpdate (releaseVersion) {
atom.autoUpdater.emitter.emit('did-complete-downloading-update', {
releaseVersion
})
}
}