Implement moveToApplicationsFolder (#10142)

* Implement moveToApplicationsFolder

* Fix tabs / spaces

* Fix linting

* Use Browser::Quit, instead of exit

* Update documentation as per feedback

* Fix spec
This commit is contained in:
Samuel Attard 2017-09-01 00:37:12 +10:00 committed by John Kleinschmidt
parent 14eea98566
commit 6b010614e2
7 changed files with 440 additions and 0 deletions

View file

@ -114,6 +114,14 @@ describe('app module', function () {
})
})
describe('app.isInApplicationsFolder()', function () {
it('should be false during tests', function () {
if (process.platform !== 'darwin') return
assert.equal(app.isInApplicationsFolder(), false)
})
})
describe('app.exit(exitCode)', function () {
var appProcess = null