mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-21 10:43:36 +00:00
301338d800
Add comprehensive tests for the sendResolvedEmail function covering: - Empty alert list (returns error) - Nil alert list (returns error) - All nil alerts (returns error from content builder) - Single alert (exercises email sending path) - Multiple alerts (tests grouped notification) - Mixed nil and valid alerts (filters correctly) - Zero resolved time (handles gracefully) Also improves buildResolvedNotificationContent coverage as a collateral benefit since sendResolvedEmail calls it internally. Coverage: sendResolvedEmail 0% → 100% Coverage: buildResolvedNotificationContent → 100% Coverage: notifications package 58.3% → 58.6%