assert_category_emitted

Macro assert_category_emitted 

Source
macro_rules! assert_category_emitted {
    ($actions:expr, $category:expr) => { ... };
}
Expand description

Assert that an action of a specific category was emitted.

This requires the action type to implement ActionCategory.

§Example

use tui_dispatch::testing::assert_category_emitted;

let actions = harness.drain_emitted();
assert_category_emitted!(actions, "search");
assert_category_emitted!(actions, "connection_form");