[MM-47754] Remove update from downloads when "Restart and Upgrade" is clicked (#2299)

* Remove update from downloads when "Restart and Upgrade" is clicked

* Fix failing test

* Mock downloadsManager in autoUpdater tests
This commit is contained in:
Tasos Boulis
2022-10-21 13:27:24 +03:00
committed by GitHub
parent aa28948800
commit 167f7d832a
4 changed files with 16 additions and 5 deletions

View File

@@ -52,6 +52,9 @@ jest.mock('main/i18nManager', () => ({
localizeMessage: jest.fn(),
}));
jest.mock('main/downloadsManager', () => ({
removeUpdateBeforeRestart: jest.fn(),
}));
describe('main/autoUpdater', () => {
describe('constructor', () => {
afterEach(() => {