Dispose emitter

This commit is contained in:
Ben Ogle
2016-02-23 17:48:15 -08:00
parent 341abbfc26
commit e9e372b69e
2 changed files with 2 additions and 1 deletions

View File

@@ -68,11 +68,11 @@ describe('AutoUpdateManager (renderer)', () => {
const spy = jasmine.createSpy('spy')
const doneIndicator = jasmine.createSpy('spy')
atom.applicationDelegate.onUpdateNotAvailable(doneIndicator)
autoUpdateManager.dispose()
autoUpdateManager.onDidBeginCheckingForUpdate(spy)
autoUpdateManager.onDidBeginDownload(spy)
autoUpdateManager.onDidCompleteDownload(spy)
autoUpdateManager.onUpdateNotAvailable(spy)
autoUpdateManager.dispose()
electronAutoUpdater.emit('checking-for-update')
electronAutoUpdater.emit('update-available')
electronAutoUpdater.emit('update-downloaded', null, null, '1.2.3')

View File

@@ -28,6 +28,7 @@ export default class AutoUpdateManager {
dispose () {
this.subscriptions.dispose()
this.emitter.dispose()
}
onDidBeginCheckingForUpdate (callback) {