From eb84072a05ccc58704eabb1e09befeabc706d3b8 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Wed, 8 Jun 2022 11:34:45 +0100 Subject: [PATCH] updating test names to read better --- .../app/features/onboarding/OnboardingViewModelTest.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vector/src/test/java/im/vector/app/features/onboarding/OnboardingViewModelTest.kt b/vector/src/test/java/im/vector/app/features/onboarding/OnboardingViewModelTest.kt index c730c9b045..128b215e9c 100644 --- a/vector/src/test/java/im/vector/app/features/onboarding/OnboardingViewModelTest.kt +++ b/vector/src/test/java/im/vector/app/features/onboarding/OnboardingViewModelTest.kt @@ -500,7 +500,7 @@ class OnboardingViewModelTest { } @Test - fun `given reset state, when resending reset password email, then triggers reset password and emits nothing`() = runTest { + fun `given existing reset state, when resending reset password email, then triggers reset password and emits nothing`() = runTest { viewModelWith(initialState.copy(resetState = ResetState(AN_EMAIL, A_PASSWORD))) val test = viewModel.test() fakeLoginWizard.givenResetPasswordSuccess(AN_EMAIL) @@ -520,7 +520,7 @@ class OnboardingViewModelTest { } @Test - fun `given can successfully confirm reset password, when confirm reset password, then opens reset password complete`() = runTest { + fun `given combined login disabled, when confirming password reset, then opens reset password complete`() = runTest { viewModelWith(initialState.copy(resetState = ResetState(AN_EMAIL, A_PASSWORD))) val test = viewModel.test() fakeVectorFeatures.givenCombinedLoginDisabled() @@ -540,7 +540,7 @@ class OnboardingViewModelTest { } @Test - fun `given can successfully confirm reset password, when confirm reset password, then emits reset password complete`() = runTest { + fun `given combined login enabled, when confirming password reset, then emits reset password complete`() = runTest { viewModelWith(initialState.copy(resetState = ResetState(AN_EMAIL, A_PASSWORD))) val test = viewModel.test() fakeVectorFeatures.givenCombinedLoginEnabled()