chore: add simple set/unset loginitem spec (#15595)

This commit is contained in:
Shelley Vohr 2018-11-06 11:31:32 -08:00 committed by GitHub
parent 934a7fc118
commit 649f04b7bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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