Remove any existing IPC hanlders/listeners before assigning new ones inside the downloadsManager (#2493)

* Remove any existing IPC hanlders/listeners before assigning new ones inside the downloadsManager

* Mock more ipx functions during tests
This commit is contained in:
Tasos Boulis
2023-01-09 16:57:53 +02:00
committed by GitHub
parent 71d6cc21ca
commit 9f6893fdb2
6 changed files with 22 additions and 0 deletions

View File

@@ -32,6 +32,8 @@ jest.mock('electron', () => {
emit: jest.fn(),
handle: jest.fn(),
on: jest.fn(),
removeHandler: jest.fn(),
removeListener: jest.fn(),
},
Notification: NotificationMock,
};