assert_not_emitted

Macro assert_not_emitted 

Source
macro_rules! assert_not_emitted {
    ($actions:expr, $pattern:pat $(if $guard:expr)?) => { ... };
}
Expand description

Assert that a specific action was NOT emitted.

§Example

use tui_dispatch::testing::assert_not_emitted;

let actions = harness.drain_emitted();
assert_not_emitted!(actions, Action::Quit);