mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-08 23:51:21 +02:00
Fix tests
This commit is contained in:
parent
a8352e7c0d
commit
3f4ec24569
1 changed files with 3 additions and 0 deletions
|
|
@ -74,6 +74,7 @@ class TestHomeRowSamples {
|
||||||
HomeRowConfig.Favorite(kind = BaseItemKind.SERIES),
|
HomeRowConfig.Favorite(kind = BaseItemKind.SERIES),
|
||||||
HomeRowConfig.Recordings(),
|
HomeRowConfig.Recordings(),
|
||||||
HomeRowConfig.TvPrograms(),
|
HomeRowConfig.TvPrograms(),
|
||||||
|
HomeRowConfig.Suggestions(parentId = UUID.randomUUID()),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -94,6 +95,7 @@ class TestHomeRowSamples {
|
||||||
is HomeRowConfig.Favorite -> foundTypes.add(it::class)
|
is HomeRowConfig.Favorite -> foundTypes.add(it::class)
|
||||||
is HomeRowConfig.Recordings -> foundTypes.add(it::class)
|
is HomeRowConfig.Recordings -> foundTypes.add(it::class)
|
||||||
is HomeRowConfig.TvPrograms -> foundTypes.add(it::class)
|
is HomeRowConfig.TvPrograms -> foundTypes.add(it::class)
|
||||||
|
is HomeRowConfig.Suggestions -> foundTypes.add(it::class)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Assert.assertEquals(HomeRowConfig::class.sealedSubclasses.size, foundTypes.size)
|
Assert.assertEquals(HomeRowConfig::class.sealedSubclasses.size, foundTypes.size)
|
||||||
|
|
@ -123,6 +125,7 @@ class TestHomeRowSamples {
|
||||||
navDrawerItemRepository = mockk(),
|
navDrawerItemRepository = mockk(),
|
||||||
latestNextUpService = mockk(),
|
latestNextUpService = mockk(),
|
||||||
imageUrlService = mockk(),
|
imageUrlService = mockk(),
|
||||||
|
suggestionService = mockk(),
|
||||||
)
|
)
|
||||||
|
|
||||||
val str = """{
|
val str = """{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue