mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
feat: SDA-1748 (Add support for Cloud Config) (#878)
* SDA-1748 - Initial Cloud config * SDA-1748 - Read menu items enabled values from filtered cloud config * SDA-1748 - Fix unit tests * SDA-1748 - Fix issues with custom title bar and devtools * SDA-1748 - Fix unit tests
This commit is contained in:
@@ -6,7 +6,7 @@ import { app } from './__mocks__/electron';
|
||||
jest.mock('../src/common/utils', () => {
|
||||
return {
|
||||
config: {
|
||||
getGlobalConfigFields: jest.fn(() => {
|
||||
getCloudConfigField: jest.fn(() => {
|
||||
return {
|
||||
customFlags: {
|
||||
authServerWhitelist: 'url',
|
||||
@@ -35,7 +35,7 @@ describe('chrome flags', () => {
|
||||
(isMac as any) = true;
|
||||
(isWindowsOS as any) = false;
|
||||
(isLinux as any) = false;
|
||||
config.getGlobalConfigFields = jest.fn(() => {
|
||||
config.getConfigFields = jest.fn(() => {
|
||||
return {
|
||||
customFlags: {
|
||||
authServerWhitelist: 'url',
|
||||
@@ -59,7 +59,7 @@ describe('chrome flags', () => {
|
||||
});
|
||||
|
||||
it('should call `setChromeFlags` correctly when `disableGpu` is false', () => {
|
||||
config.getGlobalConfigFields = jest.fn(() => {
|
||||
config.getConfigFields = jest.fn(() => {
|
||||
return {
|
||||
customFlags: {
|
||||
authServerWhitelist: 'url',
|
||||
|
||||
Reference in New Issue
Block a user