mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
Dispose emitter
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -28,6 +28,7 @@ export default class AutoUpdateManager {
|
||||
|
||||
dispose () {
|
||||
this.subscriptions.dispose()
|
||||
this.emitter.dispose()
|
||||
}
|
||||
|
||||
onDidBeginCheckingForUpdate (callback) {
|
||||
|
||||
Reference in New Issue
Block a user