Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Pururun committed Jun 26, 2024
1 parent 340259d commit d02cc2c
Showing 1 changed file with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,19 +200,18 @@ class VpnSettingsViewModelTest {
}

@Test
fun `when autoStartAndConnectOnBoot is true then uiState should be autoStart=true`() =
runTest {
// Arrange
val connectOnStart = true
fun `when autoStartAndConnectOnBoot is true then uiState should be autoStart=true`() = runTest {
// Arrange
val connectOnStart = true

// Act
autoStartAndConnectOnBootFlow.value = connectOnStart
// Act
autoStartAndConnectOnBootFlow.value = connectOnStart

// Assert
viewModel.uiState.test {
assertEquals(connectOnStart, awaitItem().autoStartAndConnectOnBoot)
}
// Assert
viewModel.uiState.test {
assertEquals(connectOnStart, awaitItem().autoStartAndConnectOnBoot)
}
}

@Test
fun `calling onToggleAutoStartAndConnectOnBoot should call autoStartAndConnectOnBoot`() =
Expand Down

0 comments on commit d02cc2c

Please sign in to comment.