Maximize main window if monitor removed/changed resolution (#2486)

* Maximize main window if monitor removed/changed resolution

* Fix unit tests

* Add better handlers to support active screen changes
This commit is contained in:
Tasos Boulis
2023-01-03 18:11:35 +02:00
committed by GitHub
parent c90f0de342
commit 76caf02cb2
3 changed files with 48 additions and 2 deletions

View File

@@ -51,6 +51,9 @@ jest.mock('electron', () => ({
handle: jest.fn(),
emit: jest.fn(),
},
screen: {
on: jest.fn(),
},
session: {
defaultSession: {
setSpellCheckerDictionaryDownloadURL: jest.fn(),