[MM-46405] Drop support for asterisk-based unreads (#2239)

This commit is contained in:
Devin Binnie
2022-08-25 14:23:29 -04:00
committed by GitHub
parent 78d9a41a7b
commit 840c640fdf
2 changed files with 7 additions and 32 deletions

View File

@@ -342,17 +342,12 @@ describe('main/views/MattermostView', () => {
it('should parse mentions from title', () => {
mattermostView.updateMentionsFromTitle('(7) Mattermost');
expect(appState.updateMentions).toHaveBeenCalledWith(mattermostView.tab.name, 7, undefined);
expect(appState.updateMentions).toHaveBeenCalledWith(mattermostView.tab.name, 7);
});
it('should parse unreads from title', () => {
mattermostView.updateMentionsFromTitle('* Mattermost');
expect(appState.updateMentions).toHaveBeenCalledWith(mattermostView.tab.name, 0, true);
});
it('should not parse unreads when title is on a channel with an asterisk before it', () => {
mattermostView.updateMentionsFromTitle('*testChannel - Mattermost');
expect(appState.updateMentions).toHaveBeenCalledWith(mattermostView.tab.name, 0, false);
expect(appState.updateMentions).toHaveBeenCalledWith(mattermostView.tab.name, 0);
});
});
});