Update the Alert Digest partial template to be more concise
This commit is contained in:
@@ -91,7 +91,7 @@ func TestBuildHourlyRenderContext(t *testing.T) {
|
||||
"**Updated:** Friday, May 29, 2026 at 8:30 AM",
|
||||
"Storm chances increase through late morning.",
|
||||
"- **10:00 AM:** 75°F and showers. Probability of precipitation is 70%.",
|
||||
"- **Flood Watch**: Flood Watch in effect from May 29 at 10:00 AM to May 29 at 2:30 PM. Avoid low-water crossings.",
|
||||
"- **Flood Watch**: Flood Watch in effect from May 29 at 10:00 AM to May 29 at 2:30 PM.",
|
||||
"A cold front is moving into the region.",
|
||||
"A front will keep the region unsettled.",
|
||||
} {
|
||||
@@ -99,6 +99,9 @@ func TestBuildHourlyRenderContext(t *testing.T) {
|
||||
t.Fatalf("rendered template missing %q:\n%s", want, text)
|
||||
}
|
||||
}
|
||||
if strings.Contains(text, "Avoid low-water crossings.") {
|
||||
t.Fatalf("rendered template includes alert instruction:\n%s", text)
|
||||
}
|
||||
}
|
||||
|
||||
func TestBuildHourlyRenderContextAllowsOmittedOptionalModules(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user