Add initial auto updater specs

This commit is contained in:
Kevin Sawicki 2016-02-03 12:53:56 -08:00
parent 7da4c3acf7
commit 3ab14e14e9
2 changed files with 39 additions and 0 deletions

View file

@ -72,6 +72,11 @@ app.on('ready', function() {
// Test if using protocol module would crash.
electron.protocol.registerStringProtocol('test-if-crashes', function() {});
// Send auto updater errors to window to be verified in specs
electron.autoUpdater.on('error', function (error) {
window.send('auto-updater-error', error.message)
});
window = new BrowserWindow({
title: 'Electron Tests',
show: false,