Fix test failure

This commit is contained in:
Ted Kim 2017-11-17 10:49:23 +09:00
parent ada71eea39
commit d9481430df

View file

@ -360,7 +360,7 @@ describe('app module', () => {
app.setLoginItemSettings({openAtLogin: true, openAsHidden: true})
assert.deepEqual(app.getLoginItemSettings(), {
openAtLogin: true,
openAsHidden: process.platform === 'darwin', // Only available on macOS
openAsHidden: process.platform === 'darwin' && !process.mas, // Only available on macOS
wasOpenedAtLogin: false,
wasOpenedAsHidden: false,
restoreState: false