Skip to content

Commit 4787622

Browse files
committed
refactor: continued refactoring of test suite
Signed-off-by: Adam Setch <[email protected]>
1 parent 49b4f6f commit 4787622

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/renderer/components/notifications/NotificationRow.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ describe('renderer/components/notifications/NotificationRow.tsx', () => {
9595
});
9696

9797
it('should open a notification in the browser - delay notification setting enabled', async () => {
98-
const markNotificationsAsRead = jest.fn();
98+
const mockMarkNotificationsAsRead = jest.fn();
9999

100100
const props = {
101101
notification: mockSingleNotification,
@@ -108,13 +108,13 @@ describe('renderer/components/notifications/NotificationRow.tsx', () => {
108108
markAsDoneOnOpen: false,
109109
delayNotificationState: true,
110110
},
111-
markNotificationsAsRead,
111+
markNotificationsAsRead: mockMarkNotificationsAsRead,
112112
});
113113

114114
await userEvent.click(screen.getByTestId('notification-row'));
115115

116116
expect(links.openNotification).toHaveBeenCalledTimes(1);
117-
expect(markNotificationsAsRead).toHaveBeenCalledTimes(1);
117+
expect(mockMarkNotificationsAsRead).toHaveBeenCalledTimes(1);
118118
});
119119

120120
it('should open a notification in browser & mark it as done', async () => {

0 commit comments

Comments
 (0)