Skip to content

Commit c9d947e

Browse files
Update autoUpdater smoke tests for new API
1 parent 3a780a9 commit c9d947e

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
@@ -430,7 +430,13 @@ app.exit(0);
430430
// auto-updater
431431
// https://github.com/atom/electron/blob/master/docs/api/auto-updater.md
432432

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

0 commit comments

Comments
 (0)