From d02cc2c2a3d1f3fceb668331f5f43238f902d79a Mon Sep 17 00:00:00 2001 From: Jonatan Rhodin Date: Wed, 26 Jun 2024 09:58:47 +0200 Subject: [PATCH] Fix formatting --- .../viewmodel/VpnSettingsViewModelTest.kt | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/android/app/src/test/kotlin/net/mullvad/mullvadvpn/viewmodel/VpnSettingsViewModelTest.kt b/android/app/src/test/kotlin/net/mullvad/mullvadvpn/viewmodel/VpnSettingsViewModelTest.kt index 748fcd2318b1..6772d1ddd331 100644 --- a/android/app/src/test/kotlin/net/mullvad/mullvadvpn/viewmodel/VpnSettingsViewModelTest.kt +++ b/android/app/src/test/kotlin/net/mullvad/mullvadvpn/viewmodel/VpnSettingsViewModelTest.kt @@ -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`() =