We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0055dd7 commit 942ae5bCopy full SHA for 942ae5b
src/renderer/utils/notifications/remove.test.ts
@@ -27,4 +27,16 @@ describe('renderer/utils/remove.ts', () => {
27
28
expect(result[0].notifications.length).toBe(1);
29
});
30
+
31
+ it('should skip notification removal if nothing to remove', () => {
32
+ expect(mockSingleAccountNotifications[0].notifications.length).toBe(1);
33
34
+ const result = removeNotifications(
35
+ { ...mockSettings, delayNotificationState: false },
36
+ [],
37
+ mockSingleAccountNotifications,
38
+ );
39
40
+ expect(result[0].notifications.length).toBe(1);
41
+ });
42
0 commit comments