Refactor config, move ipc calls to app module, some cleanup (#2669)
This commit is contained in:
@@ -59,6 +59,9 @@ jest.mock('electron', () => ({
|
||||
removeHandler: jest.fn(),
|
||||
removeListener: jest.fn(),
|
||||
},
|
||||
nativeTheme: {
|
||||
on: jest.fn(),
|
||||
},
|
||||
screen: {
|
||||
on: jest.fn(),
|
||||
},
|
||||
@@ -111,6 +114,7 @@ jest.mock('main/allowProtocolDialog', () => ({
|
||||
jest.mock('main/app/app', () => ({}));
|
||||
jest.mock('main/app/config', () => ({
|
||||
handleConfigUpdate: jest.fn(),
|
||||
handleUpdateTheme: jest.fn(),
|
||||
}));
|
||||
jest.mock('main/app/intercom', () => ({
|
||||
handleMainWindowIsShown: jest.fn(),
|
||||
|
Reference in New Issue
Block a user