Skip to content

Commit

Permalink
Fix playback vm test
Browse files Browse the repository at this point in the history
  • Loading branch information
alashow committed Jan 20, 2022
1 parent 3c4460a commit 59573d5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,15 @@ class PlaybackViewModelTest : BaseTest() {
fun `onTitleClick navigates to search albums route`() = runTest {
viewModel.onTitleClick()

navigator.assertNextRouteContains(LeafScreen.Search().root?.route, DatmusicSearchParams.BackendType.ALBUMS.type)
navigator.assertNextRouteContains(LeafScreen.Search().rootRoute, DatmusicSearchParams.BackendType.ALBUMS.type)
}

@Test
fun `onArtistClick navigates to search albums & artists route`() = runTest {
viewModel.onArtistClick()

navigator.assertNextRouteContains(
LeafScreen.Search().root?.route,
LeafScreen.Search().rootRoute,
DatmusicSearchParams.BackendType.ALBUMS.type,
DatmusicSearchParams.BackendType.ARTISTS.type
)
Expand Down

0 comments on commit 59573d5

Please sign in to comment.