expectNode

fun expectNode(node: String, check: (State) -> Unit = {}): State

Checks that node finished next, and passes the state it returned to check. In a step that ran several nodes this is the node's own result: expectStep has the state of the step.

Return

the state node returned.