Address review: scale artist title cap and cover it with the scrim

This commit is contained in:
austinried
2026-10-18 07:16:40 +00:00
parent 7161121922
commit 6b0e705883
3 changed files with 40 additions and 10 deletions
@@ -37,6 +37,29 @@ class DownloadTreeTest {
assertEquals(36L, tree.bytes)
}
@Test
fun songsKeepTheOrderTheRepositoryReturns() {
val tree =
buildTree(
listOf(
song("s2", "Two", "ar1", "Artist", "al1", "First", size = 20),
song("s1", "One", "ar1", "Artist", "al1", "First", size = 10),
),
"Unknown artist",
"Unknown album",
)
assertEquals(
listOf("Two", "One"),
tree.artists
.single()
.albums
.single()
.songs
.map { it.title },
)
}
@Test
fun aSongWithNoArtistOrAlbumIsStillShown() {
val tree = buildTree(listOf(song("s1", "One", null, null, null, null, size = 3)), "Unknown artist", "Unknown album")