[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:
@@ -52,6 +52,9 @@ jest.mock('main/i18nManager', () => ({
|
||||
localizeMessage: jest.fn(),
|
||||
}));
|
||||
|
||||
jest.mock('main/downloadsManager', () => ({
|
||||
removeUpdateBeforeRestart: jest.fn(),
|
||||
}));
|
||||
describe('main/autoUpdater', () => {
|
||||
describe('constructor', () => {
|
||||
afterEach(() => {
|
||||
|
Reference in New Issue
Block a user