[MM-52333] Create Server View State module, move into new app module (#2739)

* Create Server View State Module

* Move currentServerId to serverViewState

* Move view state into server view state module

* PR feedback/bug fixes
This commit is contained in:
Devin Binnie
2023-06-12 08:35:14 -04:00
committed by GitHub
parent a7c25ee95e
commit 21e3044ff2
21 changed files with 505 additions and 486 deletions

View File

@@ -97,6 +97,9 @@ jest.mock('../../../electron-builder.json', () => ([
},
]));
jest.mock('app/serverViewState', () => ({
init: jest.fn(),
}));
jest.mock('common/config', () => ({
once: jest.fn(),
on: jest.fn(),
@@ -120,7 +123,6 @@ jest.mock('main/app/config', () => ({
jest.mock('main/app/intercom', () => ({
handleMainWindowIsShown: jest.fn(),
}));
jest.mock('main/app/servers', () => ({}));
jest.mock('main/app/utils', () => ({
clearAppCache: jest.fn(),
getDeeplinkingURL: jest.fn(),