Skip to content

Commit 942ae5b

Browse files
committed
test: increase coverage of remove utils
Signed-off-by: Adam Setch <[email protected]>
1 parent 0055dd7 commit 942ae5b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/renderer/utils/notifications/remove.test.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,16 @@ describe('renderer/utils/remove.ts', () => {
2727

2828
expect(result[0].notifications.length).toBe(1);
2929
});
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+
});
3042
});

0 commit comments

Comments
 (0)