expectState

open suspend override fun expectState(expected: STATE)

Awaits for a state and checks if it matches the expected state.

Parameters

expected

The expected state.

Throws

if state does not match the expected state.


open suspend override fun expectState(expectedChange: STATE.() -> STATE)

Awaits for a state and checks if it matches the expected state change from the previous state.

Parameters

expectedChange

The expected change from the previous state.

Throws

if state does not match the expected change.