Enable login item spec on Windows
This commit is contained in:
parent
3d358ee7ea
commit
64513f8c69
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue