assertTracked

fun assertTracked(name: String, assertions: TrackedEventAssert.() -> Unit = {})(source)

Asserts that exactly one event with name was tracked, and applies assertions to it.

Exactly one, not at least one, so a duplicated event fails rather than passing quietly. Use assertTrackedTimes when a repeat is what you meant.