Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sridhar-sp committed Jan 5, 2025
1 parent f25a352 commit eb2c023
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ In this test, we are verifying the behavior of the `ProfileViewModel` class, spe
address from the `SavedStateHandle`. The test mocks the `SavedStateHandle` to simulate retrieving an email address from
the saved state.

1. **Mocking Dependencies:** We use mockk to mock the `SavedStateHandle` and `LogoutUseCase`, which are dependencies in
1. **Mocking Dependencies:** We use `mockk` to mock the `SavedStateHandle` and `LogoutUseCase`, which are dependencies
in
the `ProfileViewModel`.

2. **Testing Behavior:** The mock for `SavedStateHandle` is configured to return a predefined email
Expand Down Expand Up @@ -231,7 +232,7 @@ fun `should call logout callback when logout button is pressed`() = runTest(test
// Assert
assertThat(profileViewModel.shouldLogout).isTrue()
assertThat(isLogoutSuccess).isTrue()
}
}
```

</details>
Expand Down Expand Up @@ -827,10 +828,8 @@ testOptions {

## Test Your Code, Rest Your Worries

*

*_With a sturdy suite of tests as steadfast as a fortress, developers can confidently push code even on a Friday evening
and log off without a trace of worry._**
With a sturdy suite of tests as steadfast as a fortress, developers can confidently push code even on a Friday evening
and log off without a trace of worry.

<hr/>

Expand Down

0 comments on commit eb2c023

Please sign in to comment.