0.2.84
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user