Fix three tests.

This commit is contained in:
tzugen 2022-07-05 15:54:18 +02:00
parent 152b1d261a
commit 5b03b632fd
No known key found for this signature in database
GPG Key ID: 61E9C34BC10EC930
3 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ class APIAlbumConverterTest {
fun `Should convert list of Album entities to domain list entities`() {
val entityList = listOf(Album(id = "455"), Album(id = "1"), Album(id = "1000"))
val convertedList = entityList.toDomainEntityList(ActiveServerProvider.getActiveServerId())
val convertedList = entityList.toDomainEntityList(serverId)
with(convertedList) {
size `should be equal to` entityList.size

View File

@ -21,7 +21,7 @@ class APIMusicDirectoryConverterTest : BaseTest() {
childList = listOf(MusicDirectoryChild("1"), MusicDirectoryChild("2"))
)
val convertedEntity = entity.toDomainEntity(ActiveServerProvider.getActiveServerId())
val convertedEntity = entity.toDomainEntity(serverId)
with(convertedEntity) {
name `should be equal to` entity.name

View File

@ -47,7 +47,7 @@ class APISearchConverterTest : BaseTest() {
listOf(MusicDirectoryChild(id = "9118", parent = "112"))
)
val convertedEntity = entity.toDomainEntity(ActiveServerProvider.getActiveServerId())
val convertedEntity = entity.toDomainEntity(serverId)
with(convertedEntity) {
artists.size `should be equal to` entity.artistList.size