updating test names to read better
This commit is contained in:
		
							parent
							
								
									f40f838a9f
								
							
						
					
					
						commit
						eb84072a05
					
				| @ -500,7 +500,7 @@ class OnboardingViewModelTest { | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     @Test |     @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))) |         viewModelWith(initialState.copy(resetState = ResetState(AN_EMAIL, A_PASSWORD))) | ||||||
|         val test = viewModel.test() |         val test = viewModel.test() | ||||||
|         fakeLoginWizard.givenResetPasswordSuccess(AN_EMAIL) |         fakeLoginWizard.givenResetPasswordSuccess(AN_EMAIL) | ||||||
| @ -520,7 +520,7 @@ class OnboardingViewModelTest { | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     @Test |     @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))) |         viewModelWith(initialState.copy(resetState = ResetState(AN_EMAIL, A_PASSWORD))) | ||||||
|         val test = viewModel.test() |         val test = viewModel.test() | ||||||
|         fakeVectorFeatures.givenCombinedLoginDisabled() |         fakeVectorFeatures.givenCombinedLoginDisabled() | ||||||
| @ -540,7 +540,7 @@ class OnboardingViewModelTest { | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     @Test |     @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))) |         viewModelWith(initialState.copy(resetState = ResetState(AN_EMAIL, A_PASSWORD))) | ||||||
|         val test = viewModel.test() |         val test = viewModel.test() | ||||||
|         fakeVectorFeatures.givenCombinedLoginEnabled() |         fakeVectorFeatures.givenCombinedLoginEnabled() | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user