79168869

Date: 2024-11-08 05:12:42
Score: 1.5
Natty:
Report link

awaitItem() will return the first emitted value in the flow, which is an empty list of TvShow in your case. Could you try using expectMostRecentItem() to get the latest emitted value?

viewModel.recentTvShowList.test {
     assertEquals(expectedList, expectMostRecentItem())
}
Reasons:
  • Whitelisted phrase (-1): in your case
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: veeyikpong