SDA-4290 (Create Install BI analytic events) (#1957)

* SDA-4290 - Create Install BI analytic events

* SDA-4290 - Fix uts
This commit is contained in:
Kiran Niranjan
2023-09-21 18:11:26 +05:30
committed by GitHub
parent 34e86d9603
commit 77c9abdf7a
5 changed files with 104 additions and 4 deletions

View File

@@ -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');

View File

@@ -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');
});