Created
November 20, 2019 20:29
-
-
Save elihart/56ed8cc5ebea04643d7b6bab78d0dbf2 to your computer and use it in GitHub Desktop.
MvRxViewModelTextLoadingTest
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 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