Created
January 5, 2022 04:00
-
-
Save gabrielbmoro/9ed8a39b6ded17f4be5f52dc4358ff34 to your computer and use it in GitHub Desktop.
Triple AAA (Arrange-Act-Assert)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
fun `user email - already exists a user email`() { | |
// arrange | |
every { localRepository.userEmail() }.returns("[email protected]") | |
val viewModel = UserEmailStepViewModel(localRepository) | |
// act | |
val result = viewModel.userEmail | |
// assert | |
Truth.assertThat(result).isEqualTo("[email protected]") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment