ELECTRON-635 (Custom auto launch implementation)[Windows] (#484)

* ELECTRON-635: add support for auto launch custom path

* ELECTRON-635 - autolaunch aip testing

* ELECTRON-635 - Add quot

* ELECTRON-635 - Escape quot

* ELECTRON-635 - Escape quot

* ELECTRON-635 - Fix escape auto launch path

* ELECTRON-635 - Fix escape auto launch path

* ELECTRON-635 - Fix escape auto launch path

* ELECTRON-635 - add empty property to the AUTO_LAUNCH_PATH property

* ELECTRON-635 - final fix for auto launch

* ELECTRON-635 - Fix auto launch issue

* ELECTRON-635 - Fix path escape

* ELECTRON-635 - Fix first time launch

* ELECTRON-635 - Mock app.getVersion

* ELECTRON-635 - Fix per user app path
This commit is contained in:
Kiran Niranjan
2018-08-30 22:58:07 +05:30
committed by Vishwas Shashidhar
parent 0d04ac03e2
commit 274f4811f0
9 changed files with 132 additions and 117 deletions

View File

@@ -17,11 +17,16 @@ let userConfigDir;
jest.mock('electron', function() {
return {
app: {
getPath: mockedGetPath
getPath: mockedGetPath,
getVersion: mockedGetVersion
}
}
});
function mockedGetVersion() {
return '3.1.0';
}
function mockedGetPath(type) {
if (type === 'exe') {
return globalConfigDir;