Skip to content

Instantly share code, notes, and snippets.

@elihart
Created November 20, 2019 20:29
Show Gist options
  • Save elihart/56ed8cc5ebea04643d7b6bab78d0dbf2 to your computer and use it in GitHub Desktop.
Save elihart/56ed8cc5ebea04643d7b6bab78d0dbf2 to your computer and use it in GitHub Desktop.
MvRxViewModelTextLoadingTest
@Test
fun loadText() = TextViewModel::loadText {
withParams(1)
expectRequests {
GET("text/endpoint?id=1") shouldReturn "server result"
} expectState {
copy(text = "server result")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment