mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
SDA-4290 (Create Install BI analytic events) (#1957)
* SDA-4290 - Create Install BI analytic events * SDA-4290 - Fix uts
This commit is contained in:
@@ -72,6 +72,10 @@ jest.mock('../src/common/logger', () => {
|
||||
};
|
||||
});
|
||||
|
||||
jest.mock('../src/app/auto-update-handler', () => {
|
||||
return {};
|
||||
});
|
||||
|
||||
describe('child window handle', () => {
|
||||
it('should set open window handler', () => {
|
||||
const spy = jest.spyOn(webContents, 'setWindowOpenHandler');
|
||||
|
||||
@@ -4,6 +4,9 @@ import * as path from 'path';
|
||||
import { IConfig, IGlobalConfig } from '../src/app/config-handler';
|
||||
|
||||
jest.mock('electron-log');
|
||||
jest.mock('../src/app/auto-update-handler', () => {
|
||||
return {};
|
||||
});
|
||||
|
||||
describe('config', () => {
|
||||
const configFileName: string = 'Symphony.config';
|
||||
@@ -75,9 +78,8 @@ describe('config', () => {
|
||||
configInstance.readUserConfig();
|
||||
configInstance.readGlobalConfig();
|
||||
|
||||
const configField: IGlobalConfig = configInstance.getGlobalConfigFields(
|
||||
fieldMock,
|
||||
);
|
||||
const configField: IGlobalConfig =
|
||||
configInstance.getGlobalConfigFields(fieldMock);
|
||||
|
||||
expect(configField.url).toBe('something');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user