This commit is contained in:
ponzischeme89
2026-08-21 09:54:44 +12:00
parent f1164db2c5
commit 5467fba0eb
39 changed files with 7589 additions and 5537 deletions
+12
View File
@@ -33,6 +33,18 @@ func TestPersonalizeHomeRowsGraduallyDemotesIgnoredRows(t *testing.T) {
}
}
func TestDisabledContinueWatchingIsNotRendered(t *testing.T) {
rows := visibleBaseRows(homeResponse{}, false)
for _, row := range rows {
if row.Kind == "continue" {
t.Fatal("disabled Continue Watching row was rendered")
}
}
if len(rows) != 2 {
t.Fatalf("base row count = %d, want favourites and latest only", len(rows))
}
}
func TestContinueWatchingPromotesShowsAiringToday(t *testing.T) {
raw := func(value string) json.RawMessage { return json.RawMessage(value) }
items := []json.RawMessage{