Created
November 20, 2019 20:22
-
-
Save elihart/a237dc884e7ca0ff54a879cd27df095b to your computer and use it in GitHub Desktop.
MvRxViewModelUnitTestSimpleExample
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 setText() = TextViewModel::setText { | |
withParams("hello") expectState { | |
copy(text = "hello") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I cannot find
withParams
orexpectState
anywhere in the MvRx code.