0.3.00
This commit is contained in:
@@ -126,13 +126,12 @@ func TestNormalizePreferencesKeepsMultiOrderAndDedupes(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestNormalizePreferencesFoldsLegacyGenreIntoMetadataInformation(t *testing.T) {
|
||||
func TestNormalizePreferencesDropsRetiredMetadataHeroSetting(t *testing.T) {
|
||||
result := normalizePreferences(map[string]any{
|
||||
"metadataHeroContentOrder": []any{"title", "ratings", "genres", "summary"},
|
||||
})
|
||||
want := []string{"title", "ratings", "facts", "summary"}
|
||||
if !reflect.DeepEqual(result["metadataHeroContentOrder"], want) {
|
||||
t.Errorf("metadataHeroContentOrder = %v, want %v", result["metadataHeroContentOrder"], want)
|
||||
if _, exists := result["metadataHeroContentOrder"]; exists {
|
||||
t.Fatal("the household-wide metadata hero setting remained in a user's preferences")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user