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:
Antonio Scandurra
2016-03-31 10:13:41 +02:00
parent e8e2370ed1
commit 4d4ee6bf3b
5 changed files with 19 additions and 7 deletions

View File

@@ -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'))
})
})