Created
September 14, 2021 04:17
-
-
Save theapache64/414a83f5d161efdb212e730badbab385 to your computer and use it in GitHub Desktop.
This file contains 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
@Before | |
fun beforeAll() { | |
composeRule.setContent { | |
var flag by remember { | |
mutableStateOf(false) | |
} | |
if (flag) { | |
throw IllegalArgumentException() | |
} | |
Button(onClick = { flag = true }) { | |
Text(text = ACTION_THROW_ERROR) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment