0.2.96
This commit is contained in:
@@ -126,6 +126,16 @@ func TestNormalizePreferencesKeepsMultiOrderAndDedupes(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestNormalizePreferencesFoldsLegacyGenreIntoMetadataInformation(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)
|
||||
}
|
||||
}
|
||||
|
||||
// Free-form row ids are stored newline-separated on the television, so an id containing
|
||||
// one would come back as two rows on the next sync.
|
||||
func TestNormalizePreferencesRejectsNewlinesInRowIds(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user