Files
atom/packages/about/spec/mocks/updater.js
2018-08-21 15:27:37 -07:00

22 lines
511 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})
}
}