[MM-35666] Re-ordered the priority of badge sources to leave session expired to last (#1955)

* Fixing some annoying things/stuff I broke

* [MM-35666] Re-ordered the priority of badge sources to leave session expired to last

* Fix tests
This commit is contained in:
Devin Binnie
2022-01-25 09:51:25 -05:00
committed by GitHub
parent c43dfe6002
commit 6803310217
7 changed files with 23 additions and 32 deletions

View File

@@ -202,11 +202,13 @@ describe('main/app/initialize', () => {
});
describe('initializeAfterAppReady', () => {
it('should set spell checker URL if applicable', async () => {
Config.spellCheckerURL = 'http://server-1.com';
await initialize();
expect(session.defaultSession.setSpellCheckerDictionaryDownloadURL).toHaveBeenCalledWith('http://server-1.com/');
});
if (process.platform !== 'darwin') {
it('should set spell checker URL if applicable', async () => {
Config.spellCheckerURL = 'http://server-1.com';
await initialize();
expect(session.defaultSession.setSpellCheckerDictionaryDownloadURL).toHaveBeenCalledWith('http://server-1.com/');
});
}
it('should clear app cache if last version opened was older', async () => {
wasUpdated.mockReturnValue(true);