Files
felhom.eu/hub/internal/notify/r243_operator_only_test.go
T
admin b119301c6f
gates / gates (push) Successful in 2m48s
R-243: offsite_escrow_pending — an operator alarm when off-site is on and the escrow never done (7 days); 09 decisions 177-179; 07 R-899 note
Hub code 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 08:00:08 +02:00

15 lines
556 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) {
for _, e := range []string{"offsite_escrow_pending", "offsite_escrow_pending_cleared"} {
if !operatorOnlyEvents[e] {
t.Errorf("%s is not operator-only", e)
}
}
}