Skip to content

Instantly share code, notes, and snippets.

@theapache64
Created September 14, 2021 04:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theapache64/414a83f5d161efdb212e730badbab385 to your computer and use it in GitHub Desktop.
Save theapache64/414a83f5d161efdb212e730badbab385 to your computer and use it in GitHub Desktop.
@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