test(notifications): add unit tests for notification refactor #24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/826-notification-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
12 unit tests covering the notifications refactor:
NotifIcon()andNotifIconColor()for all 5 type variantsRespondNotificationhandler auth guard (no user, invalid UUID)/invitesroute redirects to/user/settings/notificationstrySendInviteEmailnil-safety (nil emailer, not configured, no email)buildInviteEmailHTMLcontent checks (sender, dashboard, permission, links)NotificationPrefsUpdatehandler auth guardNotificationPreferencemodel struct validationAll tests pass with
-raceflag.Closes OP#826
Pull request closed