isErrorWithId

fun <T> Assert<AsyncResult<T>>.isErrorWithId(): Assert<ErrorId>

Asserts the AsyncResult is an Error with an ErrorId and returns the ErrorId.