Add initial auto updater specs
This commit is contained in:
parent
7da4c3acf7
commit
3ab14e14e9
2 changed files with 39 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue