expectEvent

inline fun <reified E : Any> expectEvent(noinline check: E.() -> Unit = {}): E

The command committed exactly one event, an E, which check checks.


fun <E : Any> expectEvent(type: KClass<E>, check: E.() -> Unit = {}): E

The command committed exactly one event, of type, which check checks.