add app.isPackaged (#12656)

* add isPackaged method

* add false test case for app.isPackaged()

* document add.isPackaged()

* check isPackaged() without fs call

* convert to non-method property

* document app.isPackaged as a property

* update tests for app.isPackaged

* remove unused fs require

* clarify docs for isPackaged()
This commit is contained in:
Shelley Vohr 2018-05-07 23:15:31 -07:00 committed by GitHub
parent 4d078fdb03
commit daf75dd375
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 0 deletions

View file

@ -118,6 +118,12 @@ describe('app module', () => {
})
})
describe('app.isPackaged', () => {
it('should be false durings tests', () => {
assert.equal(app.isPackaged, false)
})
})
describe('app.isInApplicationsFolder()', () => {
before(function () {
if (process.platform !== 'darwin') {