Now that the RepoDetailsViewModel logic is done, we can add a unit test for it.
Hi Diego, I'm not sure I understand the question but I'll try to answer.
We are observing the view model's LiveData in the test
setup method and adding values to a list that we can inspect in the individual test functions.
In the test functions, we create the state we expect (
expectedState) and assert that it is equal to the value in that list (the "actual" state).