mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Enable login item spec on Windows
This commit is contained in:
@@ -300,7 +300,7 @@ describe('app module', function () {
|
||||
})
|
||||
|
||||
describe('app.get/setLoginItemSettings API', function () {
|
||||
if (process.platform !== 'darwin') return
|
||||
if (process.platform === 'linux') return
|
||||
|
||||
beforeEach(function () {
|
||||
app.setLoginItemSettings({openAtLogin: false})
|
||||
@@ -323,7 +323,7 @@ describe('app module', function () {
|
||||
app.setLoginItemSettings({openAtLogin: true, openAsHidden: true})
|
||||
assert.deepEqual(app.getLoginItemSettings(), {
|
||||
openAtLogin: true,
|
||||
openAsHidden: true,
|
||||
openAsHidden: process.platform === 'darwin', // Only available on macOS
|
||||
wasOpenedAtLogin: false,
|
||||
wasOpenedAsHidden: false,
|
||||
restoreState: false
|
||||
|
||||
Reference in New Issue
Block a user