assertErrorWithId

suspend fun <T> Flow<AsyncResult<T>>.assertErrorWithId(expected: ErrorId)

Asserts the first terminal emission from the flow is Error with the given ErrorId.