Skip to content

Commit

Permalink
chore: add simple set/unset loginitem spec (#15600)
Browse files Browse the repository at this point in the history
  • Loading branch information
trop[bot] authored and codebytere committed Nov 7, 2018
1 parent 5c14992 commit ae9f4ef
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/api-app-spec.js
Expand Up @@ -487,6 +487,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()

Expand Down

0 comments on commit ae9f4ef

Please sign in to comment.