mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add applicationDelegate.getAutoUpdateManagerErrorMessage()
Sometimes, the error event gets emitted before the renderer process has the chance to subscribe. Therefore, we expose an `autoUpdateManager.getErrorMessage()` in the browser process, so that we don’t lose that information.
This commit is contained in:
@@ -70,7 +70,6 @@ describe('AutoUpdateManager (renderer)', () => {
|
||||
autoUpdateManager.onUpdateError(spy)
|
||||
electronAutoUpdater.emit('error', {}, 'an error')
|
||||
waitsFor(() => spy.callCount === 1)
|
||||
runs(() => expect(spy).toHaveBeenCalledWith('an error'))
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user