chore: add simple set/unset loginitem spec (#15600)
This commit is contained in:
parent
5c14992e43
commit
ae9f4ef425
1 changed files with 10 additions and 0 deletions
|
@ -487,6 +487,16 @@ describe('app module', () => {
|
||||||
}, delay)
|
}, delay)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it('correctly sets and unsets the LoginItem', function () {
|
||||||
|
expect(app.getLoginItemSettings().openAtLogin).to.be.false()
|
||||||
|
|
||||||
|
app.setLoginItemSettings({ openAtLogin: true })
|
||||||
|
expect(app.getLoginItemSettings().openAtLogin).to.be.true()
|
||||||
|
|
||||||
|
app.setLoginItemSettings({ openAtLogin: false })
|
||||||
|
expect(app.getLoginItemSettings().openAtLogin).to.be.false()
|
||||||
|
})
|
||||||
|
|
||||||
it('correctly sets and unsets the LoginItem as hidden', function () {
|
it('correctly sets and unsets the LoginItem as hidden', function () {
|
||||||
if (process.platform !== 'darwin' || process.mas) this.skip()
|
if (process.platform !== 'darwin' || process.mas) this.skip()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue