Skip to content

//workflow/com.squareup.workflow1.testing/RenderTestResult/verifyAction

verifyAction

[jvm]
Content
abstract fun verifyAction(block: (WorkflowAction<PropsT, StateT, OutputT>) -> Unit)
More info

Asserts that the render pass handled either a workflow/worker output or a rendering event, and passes the resulting WorkflowAction to block for asserting.

If the workflow didn’t process any actions, block will be passed WorkflowAction.noAction.

This is useful if your actions are a sealed class or enum. If you need to test an anonymous action, use verifyActionResult.