mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
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:
committed by
Vishwas Shashidhar
parent
0d04ac03e2
commit
274f4811f0
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user