expectExternalState

suspend fun expectExternalState(expectedChange: EXTERNAL_STATE.() -> EXTERNAL_STATE)(source)

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

Parameters

expectedChange

The expected change from the previous external state.

Throws

if external state does not match the expected change.


suspend fun expectExternalState(expected: EXTERNAL_STATE)(source)

Awaits for an external state and checks if it matches the expected external state.

Parameters

expected

The expected external state.

Throws

if external state does not match the expected external state.