Enable login item spec on Windows

This commit is contained in:
Kevin Sawicki 2016-07-11 12:30:40 -07:00
parent 3d358ee7ea
commit 64513f8c69

View file

@ -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