expectSideEffect

open suspend override fun expectSideEffect(expected: SIDE_EFFECT)

Awaits for a side effect and checks if it matches the expected side effect

Parameters

expected

The expected side effect

Throws

AssertionError

if state does not match the expected change.

Sources

Link copied to clipboard