mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: add simple set/unset loginitem spec (#15599)
This commit is contained in:
@@ -486,6 +486,16 @@ describe('app module', () => {
|
||||
}, 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 () {
|
||||
if (process.platform !== 'darwin' || process.mas) this.skip()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user