Files
felhom.eu/hub/internal/notify/r243_operator_only_test.go
T
admin 5beedcce1a
gates / gates (push) Successful in 4m13s
R-304 option C (hub half): recovery_older_package allowlisted and operator-only; design + row updated
Unreleased; ships with tomorrow's hub release.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-08 10:09:20 +02:00

16 lines
694 B
Go

package notify
import "testing"
// R-243: the escrow-pending alarm and its clear line are the operator's — the household already sees the reminder
// on every page, and a missing customerMessages entry would mail them raw operator English. Red-proof: delete either
// line from operatorOnlyEvents and this fails naming it.
func TestR243_EscrowPendingIsOperatorOnly(t *testing.T) {
// R-304 option C's recovery_older_package is pinned here too (same reason: operator-only, no household text).
for _, e := range []string{"offsite_escrow_pending", "offsite_escrow_pending_cleared", "recovery_older_package"} {
if !operatorOnlyEvents[e] {
t.Errorf("%s is not operator-only", e)
}
}
}