Skip to content

Commit ea70664

Browse files
Merge pull request #94 from electron/new-auto-update
Update autoUpdater smoke tests for new API
2 parents 3dc271b + c9d947e commit ea70664

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test-smoke/electron/test/main.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,13 @@ app.exit(0);
431431
// auto-updater
432432
// https://github.com/atom/electron/blob/master/docs/api/auto-updater.md
433433

434-
autoUpdater.setFeedURL("http://mycompany.com/myapp/latest?version=" + app.getVersion());
434+
autoUpdater.setFeedURL({
435+
url: "http://mycompany.com/myapp/latest?version=" + app.getVersion(),
436+
headers: {
437+
key: 'value',
438+
},
439+
serverType: 'default',
440+
});
435441
autoUpdater.checkForUpdates();
436442
autoUpdater.quitAndInstall();
437443

0 commit comments

Comments
 (0)