Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Pururun committed Aug 15, 2024
1 parent 2cda4c6 commit 5006f13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import net.mullvad.mullvadvpn.compose.dialog.ChangelogDialog
import net.mullvad.mullvadvpn.compose.setContentWithTheme
import net.mullvad.mullvadvpn.viewmodel.Changelog
import net.mullvad.mullvadvpn.viewmodel.ChangelogViewModel
import net.mullvad.mullvadvpn.viewmodel.MullvadAppViewModel
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.RegisterExtension
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ class MullvadAppViewModelTest {
version
every { mockedChangelogRepository.getLastVersionChanges() } returns changes

viewModel = MullvadAppViewModel(mockedChangelogRepository, connectionProxy, buildVersion, false)
viewModel =
MullvadAppViewModel(mockedChangelogRepository, connectionProxy, buildVersion, false)
// Given a new version with a change log we should return it
viewModel.uiSideEffect.test {
assertEquals(awaitItem(), Changelog(version = buildVersion.name, changes = changes))
Expand All @@ -74,7 +75,8 @@ class MullvadAppViewModelTest {
every { mockedChangelogRepository.getVersionCodeOfMostRecentChangelogShowed() } returns -1
every { mockedChangelogRepository.getLastVersionChanges() } returns emptyList()

viewModel = MullvadAppViewModel(mockedChangelogRepository, connectionProxy, buildVersion, false)
viewModel =
MullvadAppViewModel(mockedChangelogRepository, connectionProxy, buildVersion, false)
// Given a new version with a change log we should not return it
viewModel.uiSideEffect.test { expectNoEvents() }
}
Expand Down

0 comments on commit 5006f13

Please sign in to comment.