package ui import ( "strings" "testing" "time" ) func TestFormatRelTimeWrapsInTickableTimeElement(t *testing.T) { // A long-open tab needs a stable anchor so the JS ticker can // refresh the label — see base.html. when := time.Now().Add(-3 * time.Hour) got := string(formatRelTime(when)) if !strings.Contains(got, `