Skip to content

Commit ce3e5c8

Browse files
committed
refactor(handlers): default user type for notification
Signed-off-by: Adam Setch <[email protected]>
1 parent b8d4a4d commit ce3e5c8

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

src/renderer/utils/notifications/handlers/default.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,8 @@ describe('renderer/utils/notifications/handlers/default.ts', () => {
145145
} as GitifyNotification),
146146
).toEqual(mockHtmlUrl);
147147
});
148+
149+
it('defaultUserType', () => {
150+
expect(defaultHandler.defaultUserType()).toEqual('User');
151+
});
148152
});

src/renderer/utils/notifications/handlers/repositoryDependabotAlertsThread.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,10 @@ describe('renderer/utils/notifications/handlers/repositoryDependabotAlertsThread
2626
} as GitifyNotification),
2727
).toEqual(`${mockHtmlUrl}/security/dependabot`);
2828
});
29+
30+
it('defaultUserType', () => {
31+
expect(repositoryDependabotAlertsThreadHandler.defaultUserType()).toEqual(
32+
'Bot',
33+
);
34+
});
2935
});

src/renderer/utils/notifications/handlers/repositoryVulnerabilityAlert.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,10 @@ describe('renderer/utils/notifications/handlers/repositoryVulnerabilityAlert.ts'
2626
} as GitifyNotification),
2727
).toEqual(mockHtmlUrl);
2828
});
29+
30+
it('defaultUserType', () => {
31+
expect(repositoryVulnerabilityAlertHandler.defaultUserType()).toEqual(
32+
'Bot',
33+
);
34+
});
2935
});

0 commit comments

Comments
 (0)